From 7443eb6e3889e2fca9bc3bdcefd7569590f8f2a2 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 20 Oct 2023 17:39:30 +0200 Subject: Added the branchvv alias to git.txt Which looks similar to `git branch -v`, but adds the last modification timestamp to each branch. --- doc/git.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/git.txt b/doc/git.txt index 800210e..517f998 100644 --- a/doc/git.txt +++ b/doc/git.txt @@ -1 +1,3 @@ GIT_PAGER=less git config --list | awk 'match($0, "submodule.(.*).url=(.*)",q){ system("echo git submodule add " q[2] " " q[1]) }' + +branchvv = for-each-ref --sort='committerdate:raw' --format='%(HEAD)%(if)%(HEAD)%(then)%(color:bold green)%(end) %(align:width=24)%(refname:short)%(end) %(objectname:short) %(color:bold blue)%(committerdate:iso)%(color:reset) %(if)%(upstream)%(then)[%(color:blue)%(upstream:short)%(color:reset)] %(end)%(subject)' refs/heads -- cgit v1.2.3