Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/bin/bash # This file: # http://angg.twu.net/bin/git-defs # http://angg.twu.net/bin/git-defs.html # (find-angg "bin/git-defs") # # OBSOLETE! Superseded by: # (find-angg "bin/eevgitlib1.sh") # # # Usage: # # . ~/bin/git-defs # # Used by: (find-es "git" "git-animations") # (find-es "git" "git-test-2") # (find-man "1 git-log") # (find-man "1 git-log" " --oneline") # (find-man "1 git-log" " --graph") # (find-man "1 git-log" "--topo-order") # (find-man "1 git-log" "--date-order") # (find-man "1 git-log" "--decorate") # (find-man "1 git-log" "--all\n") N=0 N () { echo $N; } ++N () { N=$[$N+1]; echo $N; } Dump1 () { echo $1 \($(cat $1)\); } Dumps () { for i in $*; do Dump1 $i; done; } Dump () { Dumps $(find * -type f | sort); } Modify1 () { ++N >> $1; Dump1 $1; } Modify () { for i in $*; do Modify1 $i; done; } Commit () { git commit -a -m $(N); } Commit () { git commit -a -m ${1:-$N}; } Diagram () { git log --oneline --graph --decorate --all $*; } Diagram () { git log --oneline --graph --decorate --all --date-order $*; } Log1 () { git log --oneline -1 $*; } export PAGER=cat # A hack to allow non-interactive use. # (find-bashnode "Bourne Shell Builtins" "`eval'") eval $1 # (find-eevsh "git-defs 'Diagram'") # Local Variables: # mode: sh # End: