add fork-point alias

Fri, 06 Aug 2021 11:34:28 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 06 Aug 2021 11:34:28 -0500
changeset 935
17d8ea40fb15
parent 934
fb0cbf65b726
child 936
615fa36d953b

add fork-point alias

.gitconfig file | annotate | diff | comparison | revisions
--- a/.gitconfig
+++ b/.gitconfig
@@ -30,6 +30,7 @@
 	glog     = log --graph --pretty=onelinecustom
 	recent   = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f"
 	orphan   = "!f() { git fsck --dangling | grep commit | cut -d' ' -f3 | xargs git show --compact-summary; }; f"
+	fork-point = merge-base --fork-point @{u}
 
 [pretty]
 	onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset

mercurial