From 2564c7540fed9ff0cf33a002beb0174b4b41f24b Mon Sep 17 00:00:00 2001 From: druckdev Date: Thu, 18 Feb 2021 02:13:40 +0100 Subject: [PATCH] git:pager: Add tags and stashes to search pattern For example when viewing tags (to start from the start of the file) or listing stashes with `git stash list -u`. --- .config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index ca51773..1eec762 100644 --- a/.config/git/config +++ b/.config/git/config @@ -11,7 +11,7 @@ added = 076 untracked = 014 [core] - pager = diff-so-fancy | less --tabs=8 -Rg -+FX -p'^(commit|added|deleted|modified|renamed|(Submodule .* [a-f0-9]+[.]+[a-f0-9]+))[: ]' + pager = diff-so-fancy | less --tabs=8 -Rg -+FX -p'^(commit|added|deleted|modified|renamed|tag|(Submodule .* [a-f0-9]+[.]+[a-f0-9]+)|(stash@{[0-9]+}))[: ]' excludesfile = ~/.config/git/ignore [alias] root = rev-parse --show-toplevel