This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script wraps git, so install it somewhere such as ~/bin where | |
# it will be found by your shell before the actual git executable. | |
set -e | |
# Extract the command from a git command line | |
function get_command { | |
while [[ "$1" =~ ^- ]]; do |