summary refs log tree commit diff stats
path: root/tag-git/config
diff options
context:
space:
mode:
authorAlan Pearce2015-08-17 17:06:50 +0200
committerAlan Pearce2015-08-17 17:06:50 +0200
commit9642a038b4c08f953913521f87b8a7d97fd320f7 (patch)
tree89507b417c15c6000b1b4b78cd88f4d578ea8f4b /tag-git/config
parentab9a540e35dfea6518f40e110f2f47f57e73dcc4 (diff)
downloadnixfiles-9642a038b4c08f953913521f87b8a7d97fd320f7.tar.lz
nixfiles-9642a038b4c08f953913521f87b8a7d97fd320f7.tar.zst
nixfiles-9642a038b4c08f953913521f87b8a7d97fd320f7.zip
Git add delete-merged command
Diffstat (limited to 'tag-git/config')
-rw-r--r--tag-git/config/git/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag-git/config/git/config b/tag-git/config/git/config
index 79be22e7..c005d2a1 100644
--- a/tag-git/config/git/config
+++ b/tag-git/config/git/config
@@ -19,6 +19,7 @@
 	standup = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --since yesterday --author Alan
 	ignored = ls-files --others -i --exclude-standard
 	pr = pull-request
+	delete-merged = '!sh git branch --merged | grep -v "\\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d'
 [github]
 	user = alan@alanpearce.co.uk
 [diff]