Meta/Reintegrate: make generated scripts support -u/-d options themselves
Junio C Hamano committed
Jul 8, 2010 at 07:53 UTC
3bc8f10b46cfe8046e6b3dad928979dcfb73d33e
1 file changed
+4
Reintegrate
+4
@@ -112,6 +112,10 @@ generate () {
112
shift
113
echo '#!/bin/sh'
114
echo "# $1"
115
+ echo 'case "$#,$1" in'
116
+ echo '1,-u|1,-d)'
117
+ echo " exec $PROGRAM" '"$1" "$0"'
118
+ echo 'esac'
119
echo "$PROGRAM" '"$@" <<\EOF'
120
git log --pretty=oneline --first-parent "$1" |
121
{