From 84b881a648a25ae2afdf16e466eeebc43abd8f22 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 14 Feb 2020 16:37:43 +0100 Subject: [PATCH] alias: add git_sort_branches_by_date --- aliases.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aliases.sh b/aliases.sh index 98c01cf..33856bc 100755 --- a/aliases.sh +++ b/aliases.sh @@ -69,6 +69,9 @@ alias mdiff="mate -t source.diff" # define ssh without controlmaster alias ssh1="ssh -o ControlMaster=no" +# git: useful_stuff +alias git_sort_branches_by_date="git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'" + # grc: try to source the definitions file in /etc/grc.zsh (print a warning if it does not exist) if [[ ! -f /etc/grc.zsh ]]; then