diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-01-26 00:37:22 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-26 03:32:43 +0100 |
commit | 84d544943c27a1540826730b6a8f588200c65fe6 (patch) | |
tree | 759936b88f8cee9a50084a3795e6fbffadee0afd /diff-lib.c | |
parent | pack-write.c: prepare to write 'pack-*.rev' files (diff) | |
download | git-84d544943c27a1540826730b6a8f588200c65fe6.tar.xz git-84d544943c27a1540826730b6a8f588200c65fe6.zip |
builtin/index-pack.c: allow stripping arbitrary extensions
To derive the filename for a .idx file, 'git index-pack' uses
derive_filename() to strip the '.pack' suffix and add the new suffix.
Prepare for stripping off suffixes other than '.pack' by making the
suffix to strip a parameter of derive_filename(). In order to make this
consistent with the "suffix" parameter which does not begin with a ".",
an additional check in derive_filename.
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-lib.c')
0 files changed, 0 insertions, 0 deletions