git: add recent alias
add recent alias to show the most recently updated branches
This commit is contained in:
@@ -70,6 +70,9 @@
|
||||
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
|
||||
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
|
||||
|
||||
# show the most recently touched branches
|
||||
recent = "!git for-each-ref --sort='-committerdate' --format='%(color:red)%(refname)%(color:reset)%09%(committerdate)' refs/heads | sed -e 's-refs/heads/--' | less -r"
|
||||
|
||||
# grep commands
|
||||
|
||||
# 'diff grep'
|
||||
@@ -149,3 +152,6 @@
|
||||
trustexitcode = true
|
||||
[rebase]
|
||||
instructionFormat = "[%an - %ar] %s"
|
||||
[pager]
|
||||
diff = "diff-so-fancy | less --tabs=4 -RFX"
|
||||
show = "diff-so-fancy | less --tabs=4 -RFX"
|
||||
|
||||
Reference in New Issue
Block a user