Meta/Reintegrate: make generated scripts support -u/-d options themselves

todo
Junio C Hamano 2010-07-08 07:53:41 -07:00
parent 548c6e7e3a
commit 3bc8f10b46
1 changed files with 4 additions and 0 deletions

View File

@ -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" |
{