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
index 602002b628..30065f2122 100755
--- a/Reintegrate
+++ b/Reintegrate
@@ -112,6 +112,10 @@ generate () {
shift
echo '#!/bin/sh'
echo "# $1"
+ echo 'case "$#,$1" in'
+ echo '1,-u|1,-d)'
+ echo " exec $PROGRAM" '"$1" "$0"'
+ echo 'esac'
echo "$PROGRAM" '"$@" <<\EOF'
git log --pretty=oneline --first-parent "$1" |
{