]> git.ipfire.org Git - thirdparty/git.git/commit
2.36 fast-export regression fix
authorRené Scharfe <l.s.r@web.de>
Sat, 30 Apr 2022 14:31:43 +0000 (16:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Apr 2022 18:50:33 +0000 (11:50 -0700)
commitd1c25272f5c5f78ae302f07ea0b5832c601e373b
tree38b16bf1c40018a9c5b71834b391b6b2ee8c7d0d
parent362f869ff2dbc389234ecd8c4b996a9e507c39d7
2.36 fast-export regression fix

e900d494dc (diff: add an API for deferred freeing, 2021-02-11) added a
way to allow reusing diffopts: the no_free bit.  244c27242f (diff.[ch]:
have diff_free() call clear_pathspec(opts.pathspec), 2022-02-16) made
that mechanism mandatory.

git fast-export doesn't set no_free, so path limiting stopped working
after the first commit.  Set the flag and add a basic test to make sure
only changes to the specified files are exported.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-export.c
t/t9350-fast-export.sh