aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-03-09 01:07:06 -0500
committerJunio C Hamano <gitster@pobox.com>2023-03-09 08:32:17 -0800
commit6799aadfdf484135476aaf74f5d2eb825d9f00e8 (patch)
tree5bf49e1c185e24942b1c398f6f9d1cfc028aaab1 /commit.c
parentGit 2.40-rc2 (diff)
downloadgit-6799aadfdf484135476aaf74f5d2eb825d9f00e8.tar.gz
git-6799aadfdf484135476aaf74f5d2eb825d9f00e8.zip
diff: factor out src/dst prefix setup
We directly manipulate diffopt's a_prefix and b_prefix to set up either the default "a/foo" prefix or the "--no-prefix" variant. Although this is only a few lines, it's worth pulling these into their own functions. That lets us avoid one repetition already in this patch, but will also give us a cleaner interface for callers which want to tweak this setting. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions