git.fiddlerwoaroof.com
Browse code

Add git-graph command

fiddlerwoaroof authored on 09/06/2017 17:52:52
Showing 1 changed files
... ...
@@ -44,10 +44,16 @@ git-cd() {
44 44
 }
45 45
 alias groot=git-cd
46 46
 
47
+git-graph() {
48
+  git log --graph --format=oneline --decorate "$@"
49
+}
50
+alias gl=git-graph
51
+
47 52
 is-function () {
48 53
   whence -w $1 | grep --color=auto -I function > /dev/null
49 54
 }
50 55
 
56
+
51 57
 GIT_CMD="`which -p git 2>/dev/null`"
52 58
 
53 59
 if [[ "$GIT_CMD"x != ""x ]]; then