From e226ac038cb5616a177678c19023b639c3e9ef1c Mon Sep 17 00:00:00 2001 From: sev Date: Fri, 5 Apr 2024 16:56:12 -0500 Subject: [PATCH] gitconfig: add git search alias --- etc/git/config | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/git/config b/etc/git/config index ae73c10..bcc9e4d 100644 --- a/etc/git/config +++ b/etc/git/config @@ -7,6 +7,7 @@ submodules-pull = submodule foreach git pull origin master pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" tree = log --oneline --graph --branches --color + search = !git rev-list --all | xargs -I '{}' git ls-tree -r --full-name --format='%(objectmode) %(objecttype) %(objectname) {}%x09%(path)' '{}' | grep [init] defaultBranch = master -- 2.47.0