From e9d35f903de208a615c2485935424124bd100188 Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Thu, 17 Dec 2020 11:44:12 +0100 Subject: [PATCH] Added "sumamry" alias. Will print a short summary of git commits per author. 32 Some Developer 12 Another Developer --- dot_gitconfig.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 1e2f77a..f286098 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -5,7 +5,7 @@ email = {{ .email }} [alias] - graph = log --graph --pretty=format:'%Cred%h %Creset-%C(yellow)%d%Creset %s %Cgreen(%cd) %C(blue)<%an>%Creset' --abbrev-commit --date=relative -30 + graph = log --graph --pretty=format:'%Cred%h %Creset-%C(yellow)%d%Creset %s %Cgreen(%cd) %C(blue)<%an>%Creset' --abbrev-commit --date=relative -30 logshort = log --pretty=format:'%Cred%h %Cgreen[%cd]%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --date=short showfull = show --format=fuller --name-only @@ -15,6 +15,9 @@ ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative + # Short summary of commiters + summary = shortlog --summary --numbered --email + # https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit # list remote branches ordered by date rr = for-each-ref --sort=-committerdate refs/remotes/ --count=20 --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'