diff options
Diffstat (limited to 'tw/home/files')
-rw-r--r-- | tw/home/files/zshrc | 1 |
1 files changed, 1 insertions, 0 deletions
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' |