Accept extra args

Fri, 27 Jan 2017 13:00:39 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 27 Jan 2017 13:00:39 -0500
changeset 492
e5d6f6523162
parent 491
22a04cc90ff9
child 493
165f65e47a3c

Accept extra args

.gitconfig file | annotate | diff | comparison | revisions
--- a/.gitconfig
+++ b/.gitconfig
@@ -30,7 +30,7 @@
 	new     = "!git log --pretty=onelinecustom $1@{1}..$1@{0}"
 	cleanup = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 echo git branch -d"
 	glog    = log --graph --pretty=onelinecustom
-	recent  = !sh -c 'git for-each-ref --count=${1:-20} --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\"' "$@"
+	recent  = !sh -c 'git for-each-ref --count=${1:-20} --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${@:2}' -
 
 [pretty]
 	onelinecustom = tformat:%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset

mercurial