From b9809425dd0d30e714d6ca65c4ceb50355498336 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 18 Jan 2017 08:28:38 +0100 Subject: [PATCH] add git last alias --- gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/gitconfig b/gitconfig index 4a60dcc..ad18dfa 100644 --- a/gitconfig +++ b/gitconfig @@ -20,6 +20,7 @@ diffstat = diff --stat -r lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative fix = "!f() { ${EDITOR} $(git diff --name-only | uniq ); }; f" + last = "!l() { ${EDITOR} $(git diff-tree --no-commit-id --name-only -r HEAD ); }; l" [merge] tool = bc3 [mergetool]