From 945768f9ecee4f945d549e0d239ff7afd7a97a6f Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Fri, 15 May 2026 13:37:31 +0200 Subject: [PATCH] feat(git): add `glom` alias to log against main branch --- plugins/git/README.md | 1 + plugins/git/git.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/git/README.md b/plugins/git/README.md index 0090fa6cf..0ed2deb6c 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -107,6 +107,7 @@ plugins=(... git) | `glo` | `git log --oneline --decorate` | | `glog` | `git log --oneline --decorate --graph` | | `gloga` | `git log --oneline --decorate --graph --all` | +| `glom` | `git log --oneline --decorate $(git_main_branch)..` | | `glp` | `git log --pretty=` | | `glg` | `git log --stat` | | `glgp` | `git log --stat --patch` | diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 9ef60d69a..2767fce57 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -241,6 +241,7 @@ alias glol='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgre alias glo='git log --oneline --decorate' alias glog='git log --oneline --decorate --graph' alias gloga='git log --oneline --decorate --graph --all' +alias glom='git log --oneline --decorate $(git_main_branch)..' # Pretty log messages function _git_log_prettily(){