diff options
author | Jeff King <peff@peff.net> | 2023-03-09 01:07:06 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-09 08:32:17 -0800 |
commit | 6799aadfdf484135476aaf74f5d2eb825d9f00e8 (patch) | |
tree | 5bf49e1c185e24942b1c398f6f9d1cfc028aaab1 /builtin/commit.c | |
parent | 725f57037d81e24eacfda6e59a19c60c0b4c8062 (diff) |
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions