What's in/cooking
[git] / KO
1 #!/bin/sh
2 #
3 # Not for general consumption; a script I used to make sure
4 # I do not accidentally push a rewound master to public.
5
6 case "$1" in --no-fetch) shift ;; *) git fetch ko ;; esac
7
8 mb=$(git merge-base ko/master master)
9 h=$(git rev-parse $mb ko/master | sort -u | wc -l)
10 if test "$h" != 1
11 then
12         echo "OOOOOPPPPPPPPPPPPPPSSS! master is not ko/master fast forward."
13         exit 1
14 fi
15 git show-branch --topo-order ko/master master
16 git show-branch --topo-order ko/maint maint
17 git show-branch --topo-order ko/next next
18 git show-branch --topo-order ko/pu pu