Meta/Reintegrate: make generated scripts support -u/-d options themselves
[alt-git.git] / KO
blob2d7346ff7bb7392dec4fe0007a234d64ea48f5a1
1 #!/bin/sh
3 # Not for general consumption; a script I used to make sure
4 # I do not accidentally push a rewound master to public.
6 case "$1" in --no-fetch) shift ;; *) git fetch ko ;; esac
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
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