a way to know how many commits since branch creation. not optimal as always based...
authorpatrick nsukami <ndkpatt@gmail.com>
Sat, 20 Dec 2014 03:00:10 +0000 (03:00 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Sat, 20 Dec 2014 03:00:10 +0000 (03:00 +0000)
.gitconfig

index db2ffe8..da5eabe 100644 (file)
@@ -38,6 +38,8 @@
 
         fix-latest-commit = commit --amend
         panic = !tar cvf ../git_panic.tar *
+        current-branch = rev-parse --symbolic-full-name --abbrev-ref HEAD
+        number-of-commits-since-master = "! sh -c 'git log master..`git current-branch` --oneline | wc -l | tr -d \" \"'"
 
         cl = clone
         br = branch