]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Reintegrate: make generated scripts support -u/-d options themselves
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Jul 2010 14:53:41 +0000 (07:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Jul 2010 14:53:41 +0000 (07:53 -0700)
Reintegrate

index 602002b6286907f237b2e894a674ca06081ef606..30065f21221c489eaf1332061200c9026fcc57de 100755 (executable)
@@ -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" |
        {