summaryrefslogtreecommitdiff
path: root/builtin/fast-export.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-05-04 16:51:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-05-04 16:51:28 (GMT)
commit2cc712324d518b57ac895f22314ded09cc058621 (patch)
treee3c845c074e5aadf25ee6d8af8c4178327a0ba7d /builtin/fast-export.c
parentd5a17b6665cd79a7bce54e8cde974503d0e8ddc6 (diff)
parentd1c25272f5c5f78ae302f07ea0b5832c601e373b (diff)
downloadgit-2cc712324d518b57ac895f22314ded09cc058621.zip
git-2cc712324d518b57ac895f22314ded09cc058621.tar.gz
git-2cc712324d518b57ac895f22314ded09cc058621.tar.bz2
Merge branch 'rs/fast-export-pathspec-fix'
"git fast-export -- <pathspec>" lost the pathspec when showing the second and subsequent commits, which has been corrected. * rs/fast-export-pathspec-fix: 2.36 fast-export regression fix
Diffstat (limited to 'builtin/fast-export.c')
-rw-r--r--builtin/fast-export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index a7d7269..1355b5a 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -1261,6 +1261,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
revs.diffopt.format_callback = show_filemodify;
revs.diffopt.format_callback_data = &paths_of_changed_objects;
revs.diffopt.flags.recursive = 1;
+ revs.diffopt.no_free = 1;
while ((commit = get_revision(&revs)))
handle_commit(commit, &revs, &paths_of_changed_objects);