diff options
author | Timo Wilken | 2023-11-11 20:51:39 +0100 |
---|---|---|
committer | Timo Wilken | 2023-11-11 20:56:45 +0100 |
commit | 77f41b59b56f7da6d9765b627a20486e87235d34 (patch) | |
tree | b9200aca9885bdbc1eab57dfc8195219b954cba9 /tw/home/files | |
parent | 9c55ea4984d64b7780911ae4ab6c47fcc9973c73 (diff) |
Add `ggm' command to show a log since branching off from master
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' |