diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-05-22 17:21:23 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-05-22 17:21:23 +0100 |
commit | ca80f735ec3d0eb6439d09e864bb0ff58d78260e (patch) | |
tree | effaaa5c997a4b41a1a55d46177360c4ca9a70b3 /home/.config | |
parent | 5a4a4e470d9c56c39cf15d28dbd41b4b69185dc4 (diff) | |
download | dotfiles-ca80f735ec3d0eb6439d09e864bb0ff58d78260e.tar.gz dotfiles-ca80f735ec3d0eb6439d09e864bb0ff58d78260e.tar.bz2 dotfiles-ca80f735ec3d0eb6439d09e864bb0ff58d78260e.zip |
[git] Add work conditional config
Diffstat (limited to 'home/.config')
-rw-r--r-- | home/.config/git/config | 4 |
1 files changed, 4 insertions, 0 deletions
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 |