bash_aliases: add git "mktar" alias

This commit is contained in:
Josh Holtrop 2011-12-14 13:47:27 -05:00
parent d80d49c923
commit c0e3452832

View File

@ -110,6 +110,7 @@ function git-config-joshs()
git config --global alias.gdiff 'difftool -y -t gvimdiff'
git config --global alias.gdiffc 'difftool -y -t gvimdiff --cached'
git config --global alias.wdiff 'diff --word-diff=color'
git config --global alias.mktar '!function f { name="$1"; pos="$2"; if [ "$pos" == "" ]; then pos=HEAD; fi; git archive --prefix="$name"/ "$pos" | bzip2 > ../"$name".tar.bz2; }; f'
git config --global push.default tracking
if [ -e /bin/cygwin1.dll ]; then
git config --global alias.bcdiff 'difftool -y -t bc2'