aboutsummaryrefslogtreecommitdiffstats
path: root/_gitconfig
diff options
context:
space:
mode:
Diffstat (limited to '_gitconfig')
-rw-r--r--_gitconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/_gitconfig b/_gitconfig
index 06237b0..880b03d 100644
--- a/_gitconfig
+++ b/_gitconfig
@@ -38,6 +38,10 @@
# Show space and tabs
wsErrorHighlight = all
+[alias]
+ ref-next = !sh -c 'git log --ancestry-path --format=%H ${1:-HEAD}..master | tail -n 1' -
+ log-next = !git ref-next $1 | xargs git log
+
# Large file storage
[filter "lfs"]
clean = git-lfs clean -- %f