e1fd2351e0
Commit 53d9b9b67
(Escaping tweak in git.kak, 2024-02-06) broke
blame-jump when the commit subject contains a single quote.
(Also on unbalanced "{" which is a rare edge case but we already have
it in our Git history.)
git.kak assumes that filenames don't contain ' or unbalanced {,
but we can't really make that assumption about people's names or
commit subjects.
Unfortunately the escaping here is very messy. We need to pass
arbitrary text to callbacks; maybe we should have closures that can
capture private temporary registers.
14 lines
481 B
Plaintext
14 lines
481 B
Plaintext
for git_var in $(set | awk -F= '/^GIT_/ {print $1}')
|
|
do
|
|
unset -v "$git_var"
|
|
done
|
|
export GIT_CONFIG_NOSYSTEM=true
|
|
export GIT_CONFIG_GLOBAL=/dev/null
|
|
export GIT_AUTHOR_NAME="A U Thor"
|
|
export GIT_AUTHOR_EMAIL="author@domain.tld"
|
|
export GIT_COMMITTER_NAME="C O Mitter"
|
|
export GIT_COMMITTER_EMAIL="committer@domain.tld"
|
|
export GIT_AUTHOR_DATE="1500000000 -0500"
|
|
export GIT_COMMITTER_DATE="1500000000 -0500"
|
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main # Suppress noisy warning.
|