From 83a0ec79ee3b1f64c6ae2e80dcb1fb27a55e5952 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Mon, 28 Sep 2026 13:22:49 +0200 Subject: [PATCH] feat(git): add aliases related to log, rebase and submodules (#9676) * Add glom: git log --oneline --decorate --color $(git_main_branch) * Add gsuri: git submodule update --recursive --init * Add grbmi/grbmia: git rebase $(git_main_branch) --interactive / --autosquash --- plugins/git/README.md | 4 ++++ plugins/git/git.plugin.zsh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/git/README.md b/plugins/git/README.md index 87a148ab8..7573494c9 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -108,6 +108,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 --color $(git_main_branch)..` | | `glp` | `git log --pretty=` | | `glg` | `git log --stat` | | `glgp` | `git log --stat --patch` | @@ -155,6 +156,8 @@ plugins=(... git) | `grba` | `git rebase --abort` | | `grbc` | `git rebase --continue` | | `grbi` | `git rebase --interactive` | +| `grbmi` | `git rebase $(git_main_branch) --interactive` | +| `grbmia` | `git rebase $(git_main_branch) --interactive --autosquash` | | `grbo` | `git rebase --onto` | | `grbs` | `git rebase --skip` | | `grbd` | `git rebase $(git_develop_branch)` | @@ -205,6 +208,7 @@ plugins=(... git) | `gsnut` | `git status --untracked-files=no` | | `gsi` | `git submodule init` | | `gsu` | `git submodule update` | +| `gsuri` | `git submodule update --recursive --init` | | `gsd` | `git svn dcommit` | | `git-svn-dcommit-push` | `git svn dcommit && git push github $(git_main_branch):svntrunk` | | `gsr` | `git svn rebase` | diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 91f0ce97d..1f0a699e3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -253,6 +253,7 @@ alias glolm='git log $(git_main_branch) --graph --pretty="%Cred%h%Creset -%C(aut 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 --color $(git_main_branch)..' # Pretty log messages function _git_log_prettily(){ @@ -362,6 +363,8 @@ alias grbd='git rebase $(git_develop_branch)' alias grbm='git rebase $(git_main_branch)' alias grbom='git rebase origin/$(git_main_branch)' alias grbum='git rebase upstream/$(git_main_branch)' +alias grbmi='git rebase $(git_main_branch) --interactive' +alias grbmia='git rebase $(git_main_branch) --interactive --autosquash' alias grf='git reflog' alias gr='git remote' alias grv='git remote --verbose' @@ -407,6 +410,7 @@ alias gsb='git status --short --branch' alias gsnut='git status --untracked-files=no' alias gsi='git submodule init' alias gsu='git submodule update' +alias gsuri='git submodule update --recursive --init' alias gsd='git svn dcommit' alias git-svn-dcommit-push='git svn dcommit && git push github $(git_main_branch):svntrunk' alias gsr='git svn rebase'