aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index f42caf1..249eead 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -31,6 +31,8 @@
fc = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"
# Find commits by commit message
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
+ # Remove branches that have already been merged with master
+ dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
[apply]
# Detect whitespace errors when applying a patch