summaryrefslogtreecommitdiff
path: root/.config/git/config
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik.jaeger@dswiss.com>2021-08-16 16:11:41 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2021-08-16 16:15:48 +0200
commit2be34bf81448bb263e7752c8ed4869ab4b9a62b9 (patch)
tree86bb8757ef13aebd4c57e6fa26c8e7faf7140d3a /.config/git/config
parent00c11162e6654c47bed43176948052d572289f98 (diff)
Add alias for grepping all branches
Diffstat (limited to '.config/git/config')
-rw-r--r--.config/git/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
index 1fee5a1..6e8fd28 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -99,6 +99,7 @@
g = grep -I
gr = grep -I
+ gra = "!sh -c 'git grep "$0" "$@" "$(git for-each-ref --format=\"%(refname)\"" refs/)'"
grep = grep -I
log = log --graph