summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-07-07 09:21:27 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-07 10:49:40 -0700
commit28f38f35a00f8f9de6358b1e5b32fc4f17de2f81 (patch)
tree7a9b0910d50bf634dda8168ec803fc783915375f /git-commit-script
parentb964ad1f019d66604d7577e2db49481461bcab5a (diff)
setup: drop static `cwd` variable
The current working directory is stored as part of a static strbuf variable. This variable had to have a lifetime longer than its containing function because the value we return typically points into that buffer. In the preceding commit we have moved the prefix into the repository though. Consequently, we can now return the repository's prefix instead of the local one and thus properly manage the lifecycle of this local variable. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions