tj.git-extras/bin/git-repl
Nick Campbell d666fa409a read doesn't have the -e option in SH on my machine at least.
Signed-off-by: Nick Campbell <ncampbell@siteworx.com>
2010-08-26 10:40:20 -07:00

24 lines
241 B
Bash
Executable file

#!/bin/sh
while true; do
# Readline
read -r -p "git> " cmd
# EOF
test $? -ne 0 && break
# History
history -s "$cmd"
# Built-in commands
case $cmd in
quit)
break
;;
esac
# Execute
git $cmd
done
echo