From 77f41b59b56f7da6d9765b627a20486e87235d34 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sat, 11 Nov 2023 20:51:39 +0100 Subject: Add `ggm' command to show a log since branching off from master --- tw/home/files/zshrc | 1 + 1 file changed, 1 insertion(+) (limited to 'tw') diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc index ed8575de..ca4481e2 100644 --- a/tw/home/files/zshrc +++ b/tw/home/files/zshrc @@ -141,6 +141,7 @@ alias gfa='git fetch --all --prune --tags' alias gk='git checkout' alias gkb='git checkout -b' alias gg='git glog' +ggm () { git glog "$(git merge-base "${1-$(git config --get init.defaultBranch)}" "${2-HEAD}")..${2-HEAD}"; } alias gga='git glog --all' alias ggr='git grep' alias gl='git pull' -- cgit v1.2.3