From ff8bc9d4fecbf49bf6a0793da12fe56a970bcbf8 Mon Sep 17 00:00:00 2001 From: zendesk-acicchetti Date: Fri, 4 Jun 2021 12:43:49 -0400 Subject: [PATCH] Add `git logp` --- git/gitconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git/gitconfig b/git/gitconfig index f479402..253c65f 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -5,7 +5,8 @@ [alias] pushall = !git remote | xargs -L1 git push --all pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" - pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" + logp = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" + pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" [core] autocrlf = input excludesfile = /Users/acicchetti/.gitignore