From ca80f735ec3d0eb6439d09e864bb0ff58d78260e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 22 May 2024 17:21:23 +0100 Subject: [git] Add work conditional config --- home/.config/git/config | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'home/.config/git/config') diff --git a/home/.config/git/config b/home/.config/git/config index 287b3a2..4500dc4 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -110,3 +110,7 @@ find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'" gone = !git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D ab=absorb --and-rebase +[includeIf "gitdir:~/work/"] + path = config-work +[includeIf "gitdir:~/doxfiles/.git"] + path = config-personal -- cgit v1.2.3-70-g09d2