mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-29 14:49:42 +00:00
Improve test of submodule name sorting
This commit is contained in:
parent
7dcd42a55f
commit
b76b5d3427
@ -182,6 +182,8 @@ void test_diff_submodules__submod2_index_to_wd(void)
|
||||
"<UNTRACKED>", /* not */
|
||||
"diff --git a/sm_changed_file b/sm_changed_file\nindex 4800958..4800958 160000\n--- a/sm_changed_file\n+++ b/sm_changed_file\n@@ -1 +1 @@\n-Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0\n+Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0-dirty\n", /* sm_changed_file */
|
||||
"diff --git a/sm_changed_head b/sm_changed_head\nindex 4800958..3d9386c 160000\n--- a/sm_changed_head\n+++ b/sm_changed_head\n@@ -1 +1 @@\n-Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0\n+Subproject commit 3d9386c507f6b093471a3e324085657a3c2b4247\n", /* sm_changed_head */
|
||||
"<UNTRACKED>", /* sm_changed_head- */
|
||||
"<UNTRACKED>", /* sm_changed_head_ */
|
||||
"diff --git a/sm_changed_index b/sm_changed_index\nindex 4800958..4800958 160000\n--- a/sm_changed_index\n+++ b/sm_changed_index\n@@ -1 +1 @@\n-Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0\n+Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0-dirty\n", /* sm_changed_index */
|
||||
"diff --git a/sm_changed_untracked_file b/sm_changed_untracked_file\nindex 4800958..4800958 160000\n--- a/sm_changed_untracked_file\n+++ b/sm_changed_untracked_file\n@@ -1 +1 @@\n-Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0\n+Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0-dirty\n", /* sm_changed_untracked_file */
|
||||
"diff --git a/sm_missing_commits b/sm_missing_commits\nindex 4800958..5e49635 160000\n--- a/sm_missing_commits\n+++ b/sm_missing_commits\n@@ -1 +1 @@\n-Subproject commit 480095882d281ed676fe5b863569520e54a7d5c0\n+Subproject commit 5e4963595a9774b90524d35a807169049de8ccad\n", /* sm_missing_commits */
|
||||
@ -190,6 +192,10 @@ void test_diff_submodules__submod2_index_to_wd(void)
|
||||
|
||||
g_repo = setup_fixture_submod2();
|
||||
|
||||
/* bracket existing submodule with similarly named items */
|
||||
cl_git_mkfile("submod2/sm_changed_head-", "hello");
|
||||
cl_git_mkfile("submod2/sm_changed_head_", "hello");
|
||||
|
||||
opts.flags = GIT_DIFF_INCLUDE_UNTRACKED;
|
||||
opts.old_prefix = "a"; opts.new_prefix = "b";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user