8 git
--version > /dev
/null
12 echo >&2 "Git not found. It's either not installed or not in \$PATH"
16 version
=`git --version | grep -o "[12]\.[5-9]\.[0-9]"`
19 echo "Wrong git version. $prog needs git 1.5.0 or higher, but "`git --version`" found."
26 echo "Usage:" `basename $0`" [OPTIONS] <sha1>"
30 echo " -a commit all differences without being asked"
31 echo " WARNING: use this option with caution"
32 echo " -V show version information"
39 echo "$PROGNAME: "`basename $0`-$VERSION
55 if test $i -gt $select
63 if test $i -eq $select
74 echo "Interactive git to cvs commiter"
76 echo "Please use CTR+<RETURN> in the menu select prompt"
114 git-cherry origin |
sed -n 's/^+ //p' |
xargs -l1 gc-commit
-c
121 git-branch
2>/dev
/null
124 echo >&2 "not a repository"
132 WORDS
="`git cherry origin | egrep -o -e "[a-f0-9
]{40}.
*"` exit help"; selecting
; sha
=$RESULT
138 if test "$sha" = "exit"
142 if test "$sha" = "help"
146 WORDS
="log diff commit abort"; selecting
; action
=$RESULT
147 if test "$action" = "log"
150 elif test "$action" = "diff"
153 elif test "$action" = "commit"