aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2021-06-13 16:21:22 +0500
committerAnton Bobov <abobov@gmail.com>2021-06-13 16:21:22 +0500
commit3271746fe4598cb8c622ac15d6fc9734a4a6d311 (patch)
tree1bbfbbede0037d126cffc938c2a7edc69af31c96 /files
parentf4b702c4f88934938db95b19af2c6757c807a767 (diff)
git: add alias for list local branches with a date of last commit.
Diffstat (limited to 'files')
-rw-r--r--files/.gitconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/.gitconfig b/files/.gitconfig
index 00c311a..f742e94 100644
--- a/files/.gitconfig
+++ b/files/.gitconfig
@@ -76,6 +76,8 @@
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
mr-clean = "!git for-each-ref refs/heads/mr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
+ recent = "!git for-each-ref --color=always --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:magenta)%(authorname)%(color:reset)|%(color:bold green)%(committerdate:relative)|%(color:red)%(objectname:short)%(color:reset)'|column -ts'|'"
+
[advice]
statusHints = false
detachedHead = false