tj.git-extras/bin/git-repl
Tj Holowaychuk 938bf5420f Styling
2010-09-13 16:12:59 -07:00

23 lines
251 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
ls) cmd=ls-files;;
quit) break;;
esac
# Execute
git $cmd
done
echo