Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion combine-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,6 @@ void diff_tree_combined(const struct object_id *oid,

diffopts = *opt;
copy_pathspec(&diffopts.pathspec, &opt->pathspec);
diffopts.flags.recursive = 1;
diffopts.flags.allow_external = 0;

/* find set of paths that everybody touches
Expand Down
1 change: 1 addition & 0 deletions submodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ static void collect_changed_submodules(struct repository *r,
diff_rev.diffopt.output_format |= DIFF_FORMAT_CALLBACK;
diff_rev.diffopt.format_callback = collect_changed_submodules_cb;
diff_rev.diffopt.format_callback_data = &data;
diff_rev.diffopt.flags.recursive = 1;
diff_rev.dense_combined_merges = 1;
diff_tree_combined_merge(commit, &diff_rev);
release_revisions(&diff_rev);
Expand Down
2 changes: 1 addition & 1 deletion t/t4013/diff.diff-tree_-c_--abbrev_master
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ git diff-tree -c --abbrev master
59d314ad6f356dd08601a4cd5e530381da3e3c64
::100644 100644 100644 cead32e... 7289e35... 992913c... MM dir/sub
::040000 040000 040000 65f5c9d... f977ed4... 0564e02... MM dir
::100644 100644 100644 b414108... f4615da... 10a8a9f... MM file0
$
5 changes: 5 additions & 0 deletions t/t4013/diff.diff-tree_-c_-r_master
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$ git diff-tree -c -r master
59d314ad6f356dd08601a4cd5e530381da3e3c64
::100644 100644 100644 cead32e925b1420c84c14cbf7cf755e7e45af8ad 7289e35bff32727c08dda207511bec138fdb9ea5 992913c5aa0a5476d10c49ed0f21fc0c6d1aedf3 MM dir/sub
::100644 100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f MM file0
$
2 changes: 1 addition & 1 deletion t/t4013/diff.diff-tree_-c_master
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ git diff-tree -c master
59d314ad6f356dd08601a4cd5e530381da3e3c64
::100644 100644 100644 cead32e925b1420c84c14cbf7cf755e7e45af8ad 7289e35bff32727c08dda207511bec138fdb9ea5 992913c5aa0a5476d10c49ed0f21fc0c6d1aedf3 MM dir/sub
::040000 040000 040000 65f5c9dd60ce3b2b3324b618ac7accf8d912c113 f977ed46ae6873c1c30ab878e15a4accedc3618b 0564e026437809817a64fff393079714b6dd4628 MM dir
::100644 100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f MM file0
$
2 changes: 1 addition & 1 deletion t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ git diff-tree -c --abbrev master
59d314ad6f356dd08601a4cd5e530381da3e3c64
::100644 100644 100644 cead32e 7289e35 992913c MM dir/sub
::040000 040000 040000 65f5c9d f977ed4 0564e02 MM dir
::100644 100644 100644 b414108 f4615da 10a8a9f MM file0
$
16 changes: 16 additions & 0 deletions t/t8020-last-modified.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,22 @@ test_expect_success 'only last-modified files in the current tree' '
EOF
'

test_expect_success 'last-modified with files in a subdir merged' '
git checkout -b branch-k1 1 &&
mkdir a k &&
test_commit k1 a/file2 &&
git checkout -b branch-k2 &&
test_commit k2 k/file2 &&
git checkout branch-k1 &&
test_merge km2 branch-k2 &&
test_merge km3 3 &&
check_last_modified <<-\EOF
km3 a
k2 k
1 file
EOF
'

test_expect_success 'cross merge boundaries in blaming' '
git checkout HEAD^0 &&
git rm -rf . &&
Expand Down
Loading