From 7432d50a0df86d7c92eac707a1322f9fbcca4e3f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 16 Aug 2015 22:39:23 -0700 Subject: [PATCH] git shas applies to argument instead of always HEAD --- dotfiles/gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index f36b3f17..d587f401 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -39,7 +39,7 @@ s = status -s set-working-tree = "!s() { local head=\"$(git rev-parse HEAD)\"; git reset --hard $1 && git reset --soft $head; }; s" sha = rev-parse HEAD - shas = log HEAD --pretty=format:%H + shas = log --pretty=format:%H suir = submodule update --init --recursive tb = rev-parse --abbrev-ref --symbolic-full-name @{u} untracked = "!u() { git status -s | grep "??" | awk '{print $2}'; }; u"