Why Nostr? What is Njump?
2024-07-03 00:53:36

npub1xf…xdwdh on Nostr: commit 88620b3cfa653d306a7e3c13040706fce9513940 Author: @RandyMcMillan ...

commit 88620b3cfa653d306a7e3c13040706fce9513940
Author: @RandyMcMillan <[email protected]>
Date: Mon Jan 22 16:35:48 2024 -0500

template/gnostr-git-log

template/gnostr-git-reflog

--format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/

diff --git a/template/gnostr-git-log b/template/gnostr-git-log
index 51212e662..644004795 100755
--- a/template/gnostr-git-log
+++ b/template/gnostr-git-log
@@ -24,8 +24,19 @@ help(){
exit
}
for ((i=1; i<=$#; i++)); do
+
declare REPO
REPO=$(pwd | grep -o '[^/]*$')
+
+declare WEEBLE=$(gnostr-weeble)
+WEEBLE=${WEEBLE:-0}
+
+declare BLOCKHEIGHT=$(gnostr-blockheight)
+WOBBLE=${BLOCKHEIGHT:-0}
+
+declare WOBBLE=$(gnostr-wobble)
+WOBBLE=${WOBBLE:-0}
+
if
[[ ${!i} == "-h" ]] || [[ $1 == "--help" ]] || [[ $1 == "help" ]]; then
help
@@ -36,15 +47,15 @@ elif
exit
elif
[[ ${!i} == "--hash-list" ]] || [[ ${!i} == "-hl" ]]; then
- gnostr-git log --format="$REPO/%C(auto)%H"
+ gnostr-git log --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H"
exit
elif
[[ ${!i} == "--format" ]] || [[ ${!i} == "-f" ]]; then
- gnostr-git log --format="$REPO/%C(auto)%H/%<|(17)%gd/commit/%s"
+ gnostr-git reflog --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H/%<|(17)%gd/commit/%s"
exit
elif
[[ ${!i} == "-gd" ]] || [[ ${!i} == "-g" ]]; then
- gnostr-git log --format="$REPO/%C(auto)%H%<|(17)%gd"
+ gnostr-git reflog --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H%<|(17)/%gd"
exit
else
##silence is golden
diff --git a/template/gnostr-git-reflog b/template/gnostr-git-reflog
index 556127e5e..09f850d81 100755
--- a/template/gnostr-git-reflog
+++ b/template/gnostr-git-reflog
@@ -25,6 +25,16 @@ help(){
for ((i=1; i<=$#; i++)); do
declare REPO
REPO=$(pwd | grep -o '[^/]*$')
+
+declare WEEBLE=$(gnostr-weeble)
+WEEBLE=${WEEBLE:-0}
+
+declare BLOCKHEIGHT=$(gnostr-blockheight)
+WOBBLE=${BLOCKHEIGHT:-0}
+
+declare WOBBLE=$(gnostr-wobble)
+WOBBLE=${WOBBLE:-0}
+
if
[[ ${!i} == "-h" ]] || [[ $1 == "--help" ]] || [[ $1 == "help" ]]; then
help
@@ -35,15 +45,15 @@ elif
exit
elif
[[ ${!i} == "--hash-list" ]] || [[ ${!i} == "-hl" ]]; then
- gnostr-git reflog --format="$REPO/%C(auto)%H"
+ gnostr-git reflog --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H"
exit
elif
[[ ${!i} == "--format" ]] || [[ ${!i} == "-f" ]]; then
- gnostr-git reflog --format="$REPO/%C(auto)%H/%<|(17)%gd/commit/%s"
+ gnostr-git reflog --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H/%<|(17)%gd/commit/%s"
exit
elif
[[ ${!i} == "-gd" ]] || [[ ${!i} == "-g" ]]; then
- gnostr-git reflog --format="$REPO/%C(auto)%H%<|(17)%gd"
+ gnostr-git reflog --format="$REPO/$WEEBLE/$BLOCKHEIGHT/$WOBBLE/%C(auto)%H%<|(17)/%gd"
exit
else
##silence is golden
Author Public Key
npub1xfhjtuemrrkaweehhgnr7f5m48v6xdj9ql54kga2synkx8dydz8syxdwdh