13 lines
197 B
Bash
Executable file
13 lines
197 B
Bash
Executable file
#!/bin/bash
|
|
|
|
declare -a args
|
|
|
|
while [ "$#" -gt 0 ]; do
|
|
case "$1" in
|
|
'^'*) args+=("HEAD$1") ;;
|
|
*) args+=("$1") ;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
exec "$(command -vp git)" "${args[@]}"
|