From 71c06fc7f6077901f3b3c1cd9f83d0eb519de421 Mon Sep 17 00:00:00 2001 From: Walker Traylor Date: Tue, 10 Mar 2020 05:01:18 +0700 Subject: [PATCH] alias.zsh: add glgc alias to show git log graph in compact form. --- modules/git/README.md | 1 + modules/git/alias.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/git/README.md b/modules/git/README.md index e4425fab..57f134a1 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -219,6 +219,7 @@ zstyle ':prezto:module:git:alias' skip 'yes' - `gld` displays the diff log. - `glo` displays the one line log. - `glg` displays the graph log. + - `glgc` displays the graph log in compact form. - `glb` displays the brief commit log. - `glc` displays the commit count for each contributor in descending order. - `glS` displays the log and checks the validity of signed commits. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 89ba5587..1ae5563e 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -189,6 +189,7 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then alias gld='git log --topo-order --stat --patch --full-diff --pretty=format:"${_git_log_medium_format}"' alias glo='git log --topo-order --pretty=format:"${_git_log_oneline_format}"' alias glg='git log --topo-order --all --graph --pretty=format:"${_git_log_oneline_format}"' + alias glgc='git log --graph --oneline --decorate --all' alias glb='git log --topo-order --pretty=format:"${_git_log_brief_format}"' alias glc='git shortlog --summary --numbered' alias glS='git log --show-signature'