From 877176e0b01ea6aff551fa80734116a45748c6a3 Mon Sep 17 00:00:00 2001 From: Phillip Wood Date: Wed, 10 Sep 2025 16:29:01 +0100 Subject: t4013: switch default branch name to main Remove one of the last remaining uses of "TEST_GIT_DEFAULT_INITIAL_BRANCH= main" in the test suite. We have been steadily be converting tests from using "master" as the default branch name since the introduction of TEST_GIT_DEFAULT_INITIAL_BRANCH in 704fed9ea22 (tests: start moving to a different default main branch name, 2020-10-23) The changes here are purely mechanical replacing "master" with "main" Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano --- t/t4013-diff-various.sh | 220 ++++++++++----------- ...diff-tree_--cc_--patch-with-stat_--summary_main | 34 ++++ ...ff-tree_--cc_--patch-with-stat_--summary_master | 34 ---- t/t4013/diff.diff-tree_--cc_--patch-with-stat_main | 34 ++++ .../diff.diff-tree_--cc_--patch-with-stat_master | 34 ---- t/t4013/diff.diff-tree_--cc_--shortstat_main | 4 + t/t4013/diff.diff-tree_--cc_--shortstat_master | 4 - t/t4013/diff.diff-tree_--cc_--stat_--summary_main | 6 + .../diff.diff-tree_--cc_--stat_--summary_master | 6 - t/t4013/diff.diff-tree_--cc_--stat_main | 6 + t/t4013/diff.diff-tree_--cc_--stat_master | 6 - t/t4013/diff.diff-tree_--cc_main | 30 +++ t/t4013/diff.diff-tree_--cc_master | 30 --- t/t4013/diff.diff-tree_-c_--abbrev_main | 5 + t/t4013/diff.diff-tree_-c_--abbrev_master | 5 - t/t4013/diff.diff-tree_-c_--stat_--summary_main | 6 + t/t4013/diff.diff-tree_-c_--stat_--summary_master | 6 - t/t4013/diff.diff-tree_-c_--stat_main | 6 + t/t4013/diff.diff-tree_-c_--stat_master | 6 - t/t4013/diff.diff-tree_-c_main | 5 + t/t4013/diff.diff-tree_-c_master | 5 - t/t4013/diff.diff-tree_-m_main | 11 ++ t/t4013/diff.diff-tree_-m_master | 11 -- t/t4013/diff.diff-tree_-p_-m_main | 80 ++++++++ t/t4013/diff.diff-tree_-p_-m_master | 80 -------- t/t4013/diff.diff-tree_-p_main | 2 + t/t4013/diff.diff-tree_-p_master | 2 - t/t4013/diff.diff-tree_main | 2 + t/t4013/diff.diff-tree_master | 2 - t/t4013/diff.diff_--dirstat_--cc_main~1_main | 3 + t/t4013/diff.diff_--dirstat_--cc_master~1_master | 3 - t/t4013/diff.diff_--dirstat_main~1_main~2 | 3 + t/t4013/diff.diff_--dirstat_master~1_master~2 | 3 - .../diff.diff_--line-prefix=abc_main_main^_side | 29 +++ ...diff.diff_--line-prefix=abc_master_master^_side | 29 --- t/t4013/diff.diff_main_main^_side | 29 +++ t/t4013/diff.diff_master_master^_side | 29 --- ...ff.format-patch_--attach_--stdout_initial..main | 170 ++++++++++++++++ ...f.format-patch_--attach_--stdout_initial..main^ | 110 +++++++++++ ....format-patch_--attach_--stdout_initial..master | 170 ---------------- ...format-patch_--attach_--stdout_initial..master^ | 110 ----------- ...-inline_--stdout_--numbered-files_initial..main | 170 ++++++++++++++++ ...nline_--stdout_--numbered-files_initial..master | 170 ---------------- ...-stdout_--subject-prefix=TESTCASE_initial..main | 170 ++++++++++++++++ ...tdout_--subject-prefix=TESTCASE_initial..master | 170 ---------------- ...ff.format-patch_--inline_--stdout_initial..main | 170 ++++++++++++++++ ...f.format-patch_--inline_--stdout_initial..main^ | 110 +++++++++++ ....format-patch_--inline_--stdout_initial..main^^ | 62 ++++++ ....format-patch_--inline_--stdout_initial..master | 170 ---------------- ...format-patch_--inline_--stdout_initial..master^ | 110 ----------- ...ormat-patch_--inline_--stdout_initial..master^^ | 62 ------ ...patch_--stdout_--cover-letter_-n_initial..main^ | 103 ++++++++++ ...tch_--stdout_--cover-letter_-n_initial..master^ | 103 ---------- ...rmat-patch_--stdout_--no-numbered_initial..main | 127 ++++++++++++ ...at-patch_--stdout_--no-numbered_initial..master | 127 ------------ ....format-patch_--stdout_--numbered_initial..main | 127 ++++++++++++ ...ormat-patch_--stdout_--numbered_initial..master | 127 ------------ t/t4013/diff.format-patch_--stdout_initial..main | 127 ++++++++++++ t/t4013/diff.format-patch_--stdout_initial..main^ | 81 ++++++++ t/t4013/diff.format-patch_--stdout_initial..master | 127 ------------ .../diff.format-patch_--stdout_initial..master^ | 81 -------- t/t4013/diff.log_--cc_-m_-p_main | 200 +++++++++++++++++++ t/t4013/diff.log_--cc_-m_-p_master | 200 ------------------- t/t4013/diff.log_--decorate=full_--all | 2 +- ...f.log_--decorate=full_--clear-decorations_--all | 2 +- .../diff.log_--decorate=full_--decorate-all_--all | 2 +- t/t4013/diff.log_--decorate_--all | 2 +- .../diff.log_--decorate_--clear-decorations_--all | 2 +- t/t4013/diff.log_--decorate_--decorate-all_--all | 2 +- t/t4013/diff.log_--diff-merges=first-parent_main | 56 ++++++ t/t4013/diff.log_--diff-merges=first-parent_master | 56 ------ ...ff.log_--diff-merges=off_-p_--first-parent_main | 78 ++++++++ ....log_--diff-merges=off_-p_--first-parent_master | 78 -------- ...ff.log_--first-parent_--diff-merges=off_-p_main | 78 ++++++++ ....log_--first-parent_--diff-merges=off_-p_master | 78 -------- ...iff.log_--no-diff-merges_-p_--first-parent_main | 78 ++++++++ ...f.log_--no-diff-merges_-p_--first-parent_master | 78 -------- ...ff.log_--patch-with-stat_--summary_main_--_dir_ | 74 +++++++ ....log_--patch-with-stat_--summary_master_--_dir_ | 74 ------- t/t4013/diff.log_--patch-with-stat_main | 129 ++++++++++++ t/t4013/diff.log_--patch-with-stat_main_--_dir_ | 74 +++++++ t/t4013/diff.log_--patch-with-stat_master | 129 ------------ t/t4013/diff.log_--patch-with-stat_master_--_dir_ | 74 ------- ...og_--root_--cc_--patch-with-stat_--summary_main | 199 +++++++++++++++++++ ..._--root_--cc_--patch-with-stat_--summary_master | 199 ------------------- ...iff.log_--root_--patch-with-stat_--summary_main | 167 ++++++++++++++++ ...f.log_--root_--patch-with-stat_--summary_master | 167 ---------------- t/t4013/diff.log_--root_--patch-with-stat_main | 161 +++++++++++++++ t/t4013/diff.log_--root_--patch-with-stat_master | 161 --------------- ....log_--root_-c_--patch-with-stat_--summary_main | 199 +++++++++++++++++++ ...og_--root_-c_--patch-with-stat_--summary_master | 199 ------------------- t/t4013/diff.log_--root_-p_main | 142 +++++++++++++ t/t4013/diff.log_--root_-p_master | 142 ------------- t/t4013/diff.log_--root_main | 34 ++++ t/t4013/diff.log_--root_master | 34 ---- t/t4013/diff.log_-GF_-p_--pickaxe-all_main | 27 +++ t/t4013/diff.log_-GF_-p_--pickaxe-all_master | 27 --- t/t4013/diff.log_-GF_-p_main | 18 ++ t/t4013/diff.log_-GF_-p_master | 18 -- t/t4013/diff.log_-GF_main | 7 + t/t4013/diff.log_-GF_master | 7 - t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main | 99 ++++++++++ t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master | 99 ---------- t/t4013/diff.log_-SF_-p_main | 18 ++ t/t4013/diff.log_-SF_-p_master | 18 -- t/t4013/diff.log_-SF_main | 7 + t/t4013/diff.log_-SF_main_--max-count=0 | 2 + t/t4013/diff.log_-SF_main_--max-count=1 | 7 + t/t4013/diff.log_-SF_main_--max-count=2 | 7 + t/t4013/diff.log_-SF_master | 7 - t/t4013/diff.log_-SF_master_--max-count=0 | 2 - t/t4013/diff.log_-SF_master_--max-count=1 | 7 - t/t4013/diff.log_-SF_master_--max-count=2 | 7 - t/t4013/diff.log_-S_F_main | 7 + t/t4013/diff.log_-S_F_master | 7 - t/t4013/diff.log_-c_-m_-p_main | 200 +++++++++++++++++++ t/t4013/diff.log_-c_-m_-p_master | 200 ------------------- t/t4013/diff.log_-m_--raw_main | 61 ++++++ t/t4013/diff.log_-m_--raw_master | 61 ------ t/t4013/diff.log_-m_--stat_main | 66 +++++++ t/t4013/diff.log_-m_--stat_master | 66 ------- t/t4013/diff.log_-m_-p_--first-parent_main | 100 ++++++++++ t/t4013/diff.log_-m_-p_--first-parent_master | 100 ---------- t/t4013/diff.log_-m_-p_main | 200 +++++++++++++++++++ t/t4013/diff.log_-m_-p_master | 200 ------------------- .../diff.log_-p_--diff-merges=first-parent_main | 137 +++++++++++++ .../diff.log_-p_--diff-merges=first-parent_master | 137 ------------- t/t4013/diff.log_-p_--first-parent_main | 100 ++++++++++ t/t4013/diff.log_-p_--first-parent_master | 100 ---------- t/t4013/diff.log_-p_main | 115 +++++++++++ t/t4013/diff.log_-p_master | 115 ----------- t/t4013/diff.log_main | 34 ++++ t/t4013/diff.log_master | 34 ---- t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main | 5 + .../diff.noellipses-diff-tree_-c_--abbrev_master | 5 - t/t4013/diff.noellipses-whatchanged_--root_main | 42 ++++ t/t4013/diff.noellipses-whatchanged_--root_master | 42 ---- t/t4013/diff.noellipses-whatchanged_-SF_main | 9 + t/t4013/diff.noellipses-whatchanged_-SF_master | 9 - t/t4013/diff.noellipses-whatchanged_main | 32 +++ t/t4013/diff.noellipses-whatchanged_master | 32 --- t/t4013/diff.show_--first-parent_main | 30 +++ t/t4013/diff.show_--first-parent_master | 30 --- t/t4013/diff.show_-c_main | 36 ++++ t/t4013/diff.show_-c_master | 36 ---- t/t4013/diff.show_-m_main | 93 +++++++++ t/t4013/diff.show_-m_master | 93 --------- t/t4013/diff.show_main | 36 ++++ t/t4013/diff.show_master | 36 ---- ...hanged_--patch-with-stat_--summary_main_--_dir_ | 61 ++++++ ...nged_--patch-with-stat_--summary_master_--_dir_ | 61 ------ t/t4013/diff.whatchanged_--patch-with-stat_main | 116 +++++++++++ ...diff.whatchanged_--patch-with-stat_main_--_dir_ | 61 ++++++ t/t4013/diff.whatchanged_--patch-with-stat_master | 116 ----------- ...ff.whatchanged_--patch-with-stat_master_--_dir_ | 61 ------ ...ed_--root_--cc_--patch-with-stat_--summary_main | 199 +++++++++++++++++++ ..._--root_--cc_--patch-with-stat_--summary_master | 199 ------------------- ...changed_--root_--patch-with-stat_--summary_main | 160 +++++++++++++++ ...anged_--root_--patch-with-stat_--summary_master | 160 --------------- .../diff.whatchanged_--root_--patch-with-stat_main | 154 +++++++++++++++ ...iff.whatchanged_--root_--patch-with-stat_master | 154 --------------- ...nged_--root_-c_--patch-with-stat_--summary_main | 199 +++++++++++++++++++ ...ed_--root_-c_--patch-with-stat_--summary_master | 199 ------------------- t/t4013/diff.whatchanged_--root_-p_main | 135 +++++++++++++ t/t4013/diff.whatchanged_--root_-p_master | 135 ------------- t/t4013/diff.whatchanged_--root_main | 42 ++++ t/t4013/diff.whatchanged_--root_master | 42 ---- t/t4013/diff.whatchanged_-SF_-p_main | 18 ++ t/t4013/diff.whatchanged_-SF_-p_master | 18 -- t/t4013/diff.whatchanged_-SF_main | 9 + t/t4013/diff.whatchanged_-SF_master | 9 - t/t4013/diff.whatchanged_-p_main | 102 ++++++++++ t/t4013/diff.whatchanged_-p_master | 102 ---------- t/t4013/diff.whatchanged_main | 32 +++ t/t4013/diff.whatchanged_master | 32 --- 175 files changed, 6390 insertions(+), 6390 deletions(-) create mode 100644 t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.diff-tree_--cc_--patch-with-stat_main delete mode 100644 t/t4013/diff.diff-tree_--cc_--patch-with-stat_master create mode 100644 t/t4013/diff.diff-tree_--cc_--shortstat_main delete mode 100644 t/t4013/diff.diff-tree_--cc_--shortstat_master create mode 100644 t/t4013/diff.diff-tree_--cc_--stat_--summary_main delete mode 100644 t/t4013/diff.diff-tree_--cc_--stat_--summary_master create mode 100644 t/t4013/diff.diff-tree_--cc_--stat_main delete mode 100644 t/t4013/diff.diff-tree_--cc_--stat_master create mode 100644 t/t4013/diff.diff-tree_--cc_main delete mode 100644 t/t4013/diff.diff-tree_--cc_master create mode 100644 t/t4013/diff.diff-tree_-c_--abbrev_main delete mode 100644 t/t4013/diff.diff-tree_-c_--abbrev_master create mode 100644 t/t4013/diff.diff-tree_-c_--stat_--summary_main delete mode 100644 t/t4013/diff.diff-tree_-c_--stat_--summary_master create mode 100644 t/t4013/diff.diff-tree_-c_--stat_main delete mode 100644 t/t4013/diff.diff-tree_-c_--stat_master create mode 100644 t/t4013/diff.diff-tree_-c_main delete mode 100644 t/t4013/diff.diff-tree_-c_master create mode 100644 t/t4013/diff.diff-tree_-m_main delete mode 100644 t/t4013/diff.diff-tree_-m_master create mode 100644 t/t4013/diff.diff-tree_-p_-m_main delete mode 100644 t/t4013/diff.diff-tree_-p_-m_master create mode 100644 t/t4013/diff.diff-tree_-p_main delete mode 100644 t/t4013/diff.diff-tree_-p_master create mode 100644 t/t4013/diff.diff-tree_main delete mode 100644 t/t4013/diff.diff-tree_master create mode 100644 t/t4013/diff.diff_--dirstat_--cc_main~1_main delete mode 100644 t/t4013/diff.diff_--dirstat_--cc_master~1_master create mode 100644 t/t4013/diff.diff_--dirstat_main~1_main~2 delete mode 100644 t/t4013/diff.diff_--dirstat_master~1_master~2 create mode 100644 t/t4013/diff.diff_--line-prefix=abc_main_main^_side delete mode 100644 t/t4013/diff.diff_--line-prefix=abc_master_master^_side create mode 100644 t/t4013/diff.diff_main_main^_side delete mode 100644 t/t4013/diff.diff_master_master^_side create mode 100644 t/t4013/diff.format-patch_--attach_--stdout_initial..main create mode 100644 t/t4013/diff.format-patch_--attach_--stdout_initial..main^ delete mode 100644 t/t4013/diff.format-patch_--attach_--stdout_initial..master delete mode 100644 t/t4013/diff.format-patch_--attach_--stdout_initial..master^ create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..main delete mode 100644 t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..main delete mode 100644 t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..main create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..main^ create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..main^^ delete mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..master delete mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..master^ delete mode 100644 t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ create mode 100644 t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..main^ delete mode 100644 t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ create mode 100644 t/t4013/diff.format-patch_--stdout_--no-numbered_initial..main delete mode 100644 t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master create mode 100644 t/t4013/diff.format-patch_--stdout_--numbered_initial..main delete mode 100644 t/t4013/diff.format-patch_--stdout_--numbered_initial..master create mode 100644 t/t4013/diff.format-patch_--stdout_initial..main create mode 100644 t/t4013/diff.format-patch_--stdout_initial..main^ delete mode 100644 t/t4013/diff.format-patch_--stdout_initial..master delete mode 100644 t/t4013/diff.format-patch_--stdout_initial..master^ create mode 100644 t/t4013/diff.log_--cc_-m_-p_main delete mode 100644 t/t4013/diff.log_--cc_-m_-p_master create mode 100644 t/t4013/diff.log_--diff-merges=first-parent_main delete mode 100644 t/t4013/diff.log_--diff-merges=first-parent_master create mode 100644 t/t4013/diff.log_--diff-merges=off_-p_--first-parent_main delete mode 100644 t/t4013/diff.log_--diff-merges=off_-p_--first-parent_master create mode 100644 t/t4013/diff.log_--first-parent_--diff-merges=off_-p_main delete mode 100644 t/t4013/diff.log_--first-parent_--diff-merges=off_-p_master create mode 100644 t/t4013/diff.log_--no-diff-merges_-p_--first-parent_main delete mode 100644 t/t4013/diff.log_--no-diff-merges_-p_--first-parent_master create mode 100644 t/t4013/diff.log_--patch-with-stat_--summary_main_--_dir_ delete mode 100644 t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_ create mode 100644 t/t4013/diff.log_--patch-with-stat_main create mode 100644 t/t4013/diff.log_--patch-with-stat_main_--_dir_ delete mode 100644 t/t4013/diff.log_--patch-with-stat_master delete mode 100644 t/t4013/diff.log_--patch-with-stat_master_--_dir_ create mode 100644 t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.log_--root_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.log_--root_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.log_--root_--patch-with-stat_main delete mode 100644 t/t4013/diff.log_--root_--patch-with-stat_master create mode 100644 t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.log_--root_-p_main delete mode 100644 t/t4013/diff.log_--root_-p_master create mode 100644 t/t4013/diff.log_--root_main delete mode 100644 t/t4013/diff.log_--root_master create mode 100644 t/t4013/diff.log_-GF_-p_--pickaxe-all_main delete mode 100644 t/t4013/diff.log_-GF_-p_--pickaxe-all_master create mode 100644 t/t4013/diff.log_-GF_-p_main delete mode 100644 t/t4013/diff.log_-GF_-p_master create mode 100644 t/t4013/diff.log_-GF_main delete mode 100644 t/t4013/diff.log_-GF_master create mode 100644 t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main delete mode 100644 t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master create mode 100644 t/t4013/diff.log_-SF_-p_main delete mode 100644 t/t4013/diff.log_-SF_-p_master create mode 100644 t/t4013/diff.log_-SF_main create mode 100644 t/t4013/diff.log_-SF_main_--max-count=0 create mode 100644 t/t4013/diff.log_-SF_main_--max-count=1 create mode 100644 t/t4013/diff.log_-SF_main_--max-count=2 delete mode 100644 t/t4013/diff.log_-SF_master delete mode 100644 t/t4013/diff.log_-SF_master_--max-count=0 delete mode 100644 t/t4013/diff.log_-SF_master_--max-count=1 delete mode 100644 t/t4013/diff.log_-SF_master_--max-count=2 create mode 100644 t/t4013/diff.log_-S_F_main delete mode 100644 t/t4013/diff.log_-S_F_master create mode 100644 t/t4013/diff.log_-c_-m_-p_main delete mode 100644 t/t4013/diff.log_-c_-m_-p_master create mode 100644 t/t4013/diff.log_-m_--raw_main delete mode 100644 t/t4013/diff.log_-m_--raw_master create mode 100644 t/t4013/diff.log_-m_--stat_main delete mode 100644 t/t4013/diff.log_-m_--stat_master create mode 100644 t/t4013/diff.log_-m_-p_--first-parent_main delete mode 100644 t/t4013/diff.log_-m_-p_--first-parent_master create mode 100644 t/t4013/diff.log_-m_-p_main delete mode 100644 t/t4013/diff.log_-m_-p_master create mode 100644 t/t4013/diff.log_-p_--diff-merges=first-parent_main delete mode 100644 t/t4013/diff.log_-p_--diff-merges=first-parent_master create mode 100644 t/t4013/diff.log_-p_--first-parent_main delete mode 100644 t/t4013/diff.log_-p_--first-parent_master create mode 100644 t/t4013/diff.log_-p_main delete mode 100644 t/t4013/diff.log_-p_master create mode 100644 t/t4013/diff.log_main delete mode 100644 t/t4013/diff.log_master create mode 100644 t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main delete mode 100644 t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master create mode 100644 t/t4013/diff.noellipses-whatchanged_--root_main delete mode 100644 t/t4013/diff.noellipses-whatchanged_--root_master create mode 100644 t/t4013/diff.noellipses-whatchanged_-SF_main delete mode 100644 t/t4013/diff.noellipses-whatchanged_-SF_master create mode 100644 t/t4013/diff.noellipses-whatchanged_main delete mode 100644 t/t4013/diff.noellipses-whatchanged_master create mode 100644 t/t4013/diff.show_--first-parent_main delete mode 100644 t/t4013/diff.show_--first-parent_master create mode 100644 t/t4013/diff.show_-c_main delete mode 100644 t/t4013/diff.show_-c_master create mode 100644 t/t4013/diff.show_-m_main delete mode 100644 t/t4013/diff.show_-m_master create mode 100644 t/t4013/diff.show_main delete mode 100644 t/t4013/diff.show_master create mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_--summary_main_--_dir_ delete mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_ create mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_main create mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_main_--_dir_ delete mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_master delete mode 100644 t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_ create mode 100644 t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.whatchanged_--root_--patch-with-stat_main delete mode 100644 t/t4013/diff.whatchanged_--root_--patch-with-stat_master create mode 100644 t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_main delete mode 100644 t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master create mode 100644 t/t4013/diff.whatchanged_--root_-p_main delete mode 100644 t/t4013/diff.whatchanged_--root_-p_master create mode 100644 t/t4013/diff.whatchanged_--root_main delete mode 100644 t/t4013/diff.whatchanged_--root_master create mode 100644 t/t4013/diff.whatchanged_-SF_-p_main delete mode 100644 t/t4013/diff.whatchanged_-SF_-p_master create mode 100644 t/t4013/diff.whatchanged_-SF_main delete mode 100644 t/t4013/diff.whatchanged_-SF_master create mode 100644 t/t4013/diff.whatchanged_-p_main delete mode 100644 t/t4013/diff.whatchanged_-p_master create mode 100644 t/t4013/diff.whatchanged_main delete mode 100644 t/t4013/diff.whatchanged_master diff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh index cfeec239e0..55a06eadb3 100755 --- a/t/t4013-diff-various.sh +++ b/t/t4013-diff-various.sh @@ -5,7 +5,7 @@ test_description='Various diff formatting options' -GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh @@ -70,7 +70,7 @@ test_expect_success setup ' GIT_COMMITTER_DATE="2006-06-26 00:04:00 +0000" && export GIT_AUTHOR_DATE GIT_COMMITTER_DATE && - git checkout master && + git checkout main && git pull -s ours --no-rebase . side && GIT_AUTHOR_DATE="2006-06-26 00:05:00 +0000" && @@ -95,7 +95,7 @@ test_expect_success setup ' test_write_lines B A >dir/sub && git add dir/sub && git commit -m "Rearranged lines in dir/sub" && - git checkout master && + git checkout main && GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && @@ -103,7 +103,7 @@ test_expect_success setup ' git checkout -b mode initial && git update-index --chmod=+x file0 && git commit -m "update mode" && - git checkout -f master && + git checkout -f main && GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && @@ -112,12 +112,12 @@ test_expect_success setup ' git update-index --chmod=+x file2 && git commit -m "update mode (file2)" && git notes add -m "note" && - git checkout -f master && + git checkout -f main && - # Same merge as master, but with parents reversed. Hide it in a + # Same merge as main, but with parents reversed. Hide it in a # pseudo-ref to avoid impacting tests with --all. commit=$(echo reverse | - git commit-tree -p master^2 -p master^1 master^{tree}) && + git commit-tree -p main^2 -p main^1 main^{tree}) && git update-ref REVERSE $commit && git config diff.renames false && @@ -127,15 +127,15 @@ test_expect_success setup ' : <<\EOF ! [initial] Initial - * [master] Merge branch 'side' + * [main] Merge branch 'side' ! [rearrange] Rearranged lines in dir/sub ! [side] Side ---- + [rearrange] Rearranged lines in dir/sub - - [master] Merge branch 'side' + - [main] Merge branch 'side' * + [side] Side - * [master^] Third - * [master~2] Second + * [main^] Third + * [main~2] Second +*++ [initial] Initial EOF @@ -311,64 +311,64 @@ diff-tree initial mode diff-tree --stat initial mode diff-tree --summary initial mode -diff-tree master -diff-tree -m master -diff-tree -p master -diff-tree -p -m master -diff-tree -c master -diff-tree -c --abbrev master -:noellipses diff-tree -c --abbrev master -diff-tree --cc master +diff-tree main +diff-tree -m main +diff-tree -p main +diff-tree -p -m main +diff-tree -c main +diff-tree -c --abbrev main +:noellipses diff-tree -c --abbrev main +diff-tree --cc main # stat only should show the diffstat with the first parent -diff-tree -c --stat master -diff-tree --cc --stat master -diff-tree -c --stat --summary master -diff-tree --cc --stat --summary master +diff-tree -c --stat main +diff-tree --cc --stat main +diff-tree -c --stat --summary main +diff-tree --cc --stat --summary main # stat summary should show the diffstat and summary with the first parent diff-tree -c --stat --summary side diff-tree --cc --stat --summary side -diff-tree --cc --shortstat master +diff-tree --cc --shortstat main diff-tree --cc --summary REVERSE # improved by Timo's patch -diff-tree --cc --patch-with-stat master +diff-tree --cc --patch-with-stat main # improved by Timo's patch -diff-tree --cc --patch-with-stat --summary master +diff-tree --cc --patch-with-stat --summary main # this is correct diff-tree --cc --patch-with-stat --summary side -log master -log -p master -log --root master -log --root -p master -log --patch-with-stat master -log --root --patch-with-stat master -log --root --patch-with-stat --summary master +log main +log -p main +log --root main +log --root -p main +log --patch-with-stat main +log --root --patch-with-stat main +log --root --patch-with-stat --summary main # improved by Timo's patch -log --root -c --patch-with-stat --summary master +log --root -c --patch-with-stat --summary main # improved by Timo's patch -log --root --cc --patch-with-stat --summary master -log --no-diff-merges -p --first-parent master -log --diff-merges=off -p --first-parent master -log --first-parent --diff-merges=off -p master -log -p --first-parent master -log -p --diff-merges=first-parent master -log --diff-merges=first-parent master -log -m -p --first-parent master -log -m -p master -log --cc -m -p master -log -c -m -p master -log -m --raw master -log -m --stat master -log -SF master -log -S F master -log -SF -p master -log -SF master --max-count=0 -log -SF master --max-count=1 -log -SF master --max-count=2 -log -GF master -log -GF -p master -log -GF -p --pickaxe-all master -log -IA -IB -I1 -I2 -p master +log --root --cc --patch-with-stat --summary main +log --no-diff-merges -p --first-parent main +log --diff-merges=off -p --first-parent main +log --first-parent --diff-merges=off -p main +log -p --first-parent main +log -p --diff-merges=first-parent main +log --diff-merges=first-parent main +log -m -p --first-parent main +log -m -p main +log --cc -m -p main +log -c -m -p main +log -m --raw main +log -m --stat main +log -SF main +log -S F main +log -SF -p main +log -SF main --max-count=0 +log -SF main --max-count=1 +log -SF main --max-count=2 +log -GF main +log -GF -p main +log -GF -p --pickaxe-all main +log -IA -IB -I1 -I2 -p main log --decorate --all log --decorate=full --all log --decorate --clear-decorations --all @@ -377,35 +377,35 @@ log --decorate=full --clear-decorations --all rev-list --parents HEAD rev-list --children HEAD -whatchanged master -:noellipses whatchanged master -whatchanged -p master -whatchanged --root master -:noellipses whatchanged --root master -whatchanged --root -p master -whatchanged --patch-with-stat master -whatchanged --root --patch-with-stat master -whatchanged --root --patch-with-stat --summary master +whatchanged main +:noellipses whatchanged main +whatchanged -p main +whatchanged --root main +:noellipses whatchanged --root main +whatchanged --root -p main +whatchanged --patch-with-stat main +whatchanged --root --patch-with-stat main +whatchanged --root --patch-with-stat --summary main # improved by Timo's patch -whatchanged --root -c --patch-with-stat --summary master +whatchanged --root -c --patch-with-stat --summary main # improved by Timo's patch -whatchanged --root --cc --patch-with-stat --summary master -whatchanged -SF master -:noellipses whatchanged -SF master -whatchanged -SF -p master +whatchanged --root --cc --patch-with-stat --summary main +whatchanged -SF main +:noellipses whatchanged -SF main +whatchanged -SF -p main -log --patch-with-stat master -- dir/ -whatchanged --patch-with-stat master -- dir/ -log --patch-with-stat --summary master -- dir/ -whatchanged --patch-with-stat --summary master -- dir/ +log --patch-with-stat main -- dir/ +whatchanged --patch-with-stat main -- dir/ +log --patch-with-stat --summary main -- dir/ +whatchanged --patch-with-stat --summary main -- dir/ show initial show --root initial show side -show master -show -c master -show -m master -show --first-parent master +show main +show -c main +show -m main +show --first-parent main show --stat side show --stat --summary side show --patch-with-stat side @@ -414,22 +414,22 @@ show --patch-with-raw side show --patch-with-stat --summary side format-patch --stdout initial..side -format-patch --stdout initial..master^ -format-patch --stdout initial..master -format-patch --stdout --no-numbered initial..master -format-patch --stdout --numbered initial..master +format-patch --stdout initial..main^ +format-patch --stdout initial..main +format-patch --stdout --no-numbered initial..main +format-patch --stdout --numbered initial..main format-patch --attach --stdout initial..side format-patch --attach --stdout --suffix=.diff initial..side -format-patch --attach --stdout initial..master^ -format-patch --attach --stdout initial..master +format-patch --attach --stdout initial..main^ +format-patch --attach --stdout initial..main format-patch --inline --stdout initial..side -format-patch --inline --stdout initial..master^ -format-patch --inline --stdout --numbered-files initial..master -format-patch --inline --stdout initial..master -format-patch --inline --stdout --subject-prefix=TESTCASE initial..master +format-patch --inline --stdout initial..main^ +format-patch --inline --stdout --numbered-files initial..main +format-patch --inline --stdout initial..main +format-patch --inline --stdout --subject-prefix=TESTCASE initial..main config format.subjectprefix DIFFERENT_PREFIX -format-patch --inline --stdout initial..master^^ -format-patch --stdout --cover-letter -n initial..master^ +format-patch --inline --stdout initial..main^^ +format-patch --stdout --cover-letter -n initial..main^ diff --abbrev initial..side diff -U initial..side @@ -448,13 +448,13 @@ diff --name-status dir2 dir diff --no-index --name-status dir2 dir diff --no-index --name-status -- dir2 dir diff --no-index dir dir3 -diff master master^ side +diff main main^ side # Can't use spaces... -diff --line-prefix=abc master master^ side -diff --dirstat master~1 master~2 +diff --line-prefix=abc main main^ side +diff --dirstat main~1 main~2 diff --dirstat initial rearrange diff --dirstat-by-file initial rearrange -diff --dirstat --cc master~1 master +diff --dirstat --cc main~1 main # No-index --abbrev and --no-abbrev diff --raw initial :noellipses diff --raw initial @@ -482,7 +482,7 @@ test_expect_success !WITH_BREAKING_CHANGES 'whatchanged needs --i-still-use-this ' test_expect_success 'log -m matches pure log' ' - git log master >result && + git log main >result && process_diffs result >expected && git log -m >result && process_diffs result >actual && @@ -490,17 +490,17 @@ test_expect_success 'log -m matches pure log' ' ' test_expect_success 'log --diff-merges=on matches --diff-merges=separate' ' - git log -p --diff-merges=separate master >result && + git log -p --diff-merges=separate main >result && process_diffs result >expected && - git log -p --diff-merges=on master >result && + git log -p --diff-merges=on main >result && process_diffs result >actual && test_cmp expected actual ' test_expect_success 'log --dd matches --diff-merges=1 -p' ' - git log --diff-merges=1 -p master >result && + git log --diff-merges=1 -p main >result && process_diffs result >expected && - git log --dd master >result && + git log --dd main >result && process_diffs result >actual && test_cmp expected actual ' @@ -511,19 +511,19 @@ test_expect_success 'deny wrong log.diffMerges config' ' ' test_expect_success 'git config log.diffMerges first-parent' ' - git log -p --diff-merges=first-parent master >result && + git log -p --diff-merges=first-parent main >result && process_diffs result >expected && test_config log.diffMerges first-parent && - git log -p --diff-merges=on master >result && + git log -p --diff-merges=on main >result && process_diffs result >actual && test_cmp expected actual ' test_expect_success 'git config log.diffMerges first-parent vs -m' ' - git log -p --diff-merges=first-parent master >result && + git log -p --diff-merges=first-parent main >result && process_diffs result >expected && test_config log.diffMerges first-parent && - git log -p -m master >result && + git log -p -m main >result && process_diffs result >actual && test_cmp expected actual ' @@ -572,7 +572,7 @@ test_expect_success 'diff-tree --stdin with log formatting' ' Third Second EOF - git rev-list master | git diff-tree --stdin --format=%s -s >actual && + git rev-list main | git diff-tree --stdin --format=%s -s >actual && test_cmp expect actual ' @@ -585,16 +585,16 @@ test_expect_success 'diff-tree --stdin with pathspec' ' dir/sub EOF - git rev-list master^ | + git rev-list main^ | git diff-tree -r --stdin --name-only --format=%s dir >actual && test_cmp expect actual ' test_expect_success 'show A B ... -- ' ' # side touches dir/sub, file0, and file3 - # master^ touches dir/sub, and file1 - # master^^ touches dir/sub, file0, and file2 - git show --name-only --format="<%s>" side master^ master^^ -- dir >actual && + # main^ touches dir/sub, and file1 + # main^^ touches dir/sub, file0, and file2 + git show --name-only --format="<%s>" side main^ main^^ -- dir >actual && cat >expect <<-\EOF && @@ -610,7 +610,7 @@ test_expect_success 'show A B ... -- ' ' ' test_expect_success 'diff -I: setup' ' - git checkout master && + git checkout main && test_seq 50 >file0 && git commit -m "Set up -I test file" file0 && test_seq 50 | sed -e "s/13/ten and three/" -e "/7\$/d" >file0 && diff --git a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_main b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..af1cf20f4c --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_main @@ -0,0 +1,34 @@ +$ git diff-tree --cc --patch-with-stat --summary main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master deleted file mode 100644 index 9951e3677d..0000000000 --- a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master +++ /dev/null @@ -1,34 +0,0 @@ -$ git diff-tree --cc --patch-with-stat --summary master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_main b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_main new file mode 100644 index 0000000000..0ec6042097 --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_main @@ -0,0 +1,34 @@ +$ git diff-tree --cc --patch-with-stat main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_master b/t/t4013/diff.diff-tree_--cc_--patch-with-stat_master deleted file mode 100644 index db3c0a7b2c..0000000000 --- a/t/t4013/diff.diff-tree_--cc_--patch-with-stat_master +++ /dev/null @@ -1,34 +0,0 @@ -$ git diff-tree --cc --patch-with-stat master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.diff-tree_--cc_--shortstat_main b/t/t4013/diff.diff-tree_--cc_--shortstat_main new file mode 100644 index 0000000000..9a4ef03197 --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_--shortstat_main @@ -0,0 +1,4 @@ +$ git diff-tree --cc --shortstat main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + 2 files changed, 5 insertions(+) +$ diff --git a/t/t4013/diff.diff-tree_--cc_--shortstat_master b/t/t4013/diff.diff-tree_--cc_--shortstat_master deleted file mode 100644 index a4ca42df2a..0000000000 --- a/t/t4013/diff.diff-tree_--cc_--shortstat_master +++ /dev/null @@ -1,4 +0,0 @@ -$ git diff-tree --cc --shortstat master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - 2 files changed, 5 insertions(+) -$ diff --git a/t/t4013/diff.diff-tree_--cc_--stat_--summary_main b/t/t4013/diff.diff-tree_--cc_--stat_--summary_main new file mode 100644 index 0000000000..9db08a4aa9 --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_--stat_--summary_main @@ -0,0 +1,6 @@ +$ git diff-tree --cc --stat --summary main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) +$ diff --git a/t/t4013/diff.diff-tree_--cc_--stat_--summary_master b/t/t4013/diff.diff-tree_--cc_--stat_--summary_master deleted file mode 100644 index d019867dd9..0000000000 --- a/t/t4013/diff.diff-tree_--cc_--stat_--summary_master +++ /dev/null @@ -1,6 +0,0 @@ -$ git diff-tree --cc --stat --summary master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) -$ diff --git a/t/t4013/diff.diff-tree_--cc_--stat_main b/t/t4013/diff.diff-tree_--cc_--stat_main new file mode 100644 index 0000000000..7ecc67a524 --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_--stat_main @@ -0,0 +1,6 @@ +$ git diff-tree --cc --stat main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) +$ diff --git a/t/t4013/diff.diff-tree_--cc_--stat_master b/t/t4013/diff.diff-tree_--cc_--stat_master deleted file mode 100644 index 40b91796b3..0000000000 --- a/t/t4013/diff.diff-tree_--cc_--stat_master +++ /dev/null @@ -1,6 +0,0 @@ -$ git diff-tree --cc --stat master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) -$ diff --git a/t/t4013/diff.diff-tree_--cc_main b/t/t4013/diff.diff-tree_--cc_main new file mode 100644 index 0000000000..1a962856ad --- /dev/null +++ b/t/t4013/diff.diff-tree_--cc_main @@ -0,0 +1,30 @@ +$ git diff-tree --cc main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.diff-tree_--cc_master b/t/t4013/diff.diff-tree_--cc_master deleted file mode 100644 index 5ecb4e14ae..0000000000 --- a/t/t4013/diff.diff-tree_--cc_master +++ /dev/null @@ -1,30 +0,0 @@ -$ git diff-tree --cc master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.diff-tree_-c_--abbrev_main b/t/t4013/diff.diff-tree_-c_--abbrev_main new file mode 100644 index 0000000000..039d127cf2 --- /dev/null +++ b/t/t4013/diff.diff-tree_-c_--abbrev_main @@ -0,0 +1,5 @@ +$ git diff-tree -c --abbrev main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +::100644 100644 100644 cead32e... 7289e35... 992913c... MM dir/sub +::100644 100644 100644 b414108... f4615da... 10a8a9f... MM file0 +$ diff --git a/t/t4013/diff.diff-tree_-c_--abbrev_master b/t/t4013/diff.diff-tree_-c_--abbrev_master deleted file mode 100644 index b8e4aa2530..0000000000 --- a/t/t4013/diff.diff-tree_-c_--abbrev_master +++ /dev/null @@ -1,5 +0,0 @@ -$ git diff-tree -c --abbrev master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -::100644 100644 100644 cead32e... 7289e35... 992913c... MM dir/sub -::100644 100644 100644 b414108... f4615da... 10a8a9f... MM file0 -$ diff --git a/t/t4013/diff.diff-tree_-c_--stat_--summary_main b/t/t4013/diff.diff-tree_-c_--stat_--summary_main new file mode 100644 index 0000000000..05a8d16ba7 --- /dev/null +++ b/t/t4013/diff.diff-tree_-c_--stat_--summary_main @@ -0,0 +1,6 @@ +$ git diff-tree -c --stat --summary main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) +$ diff --git a/t/t4013/diff.diff-tree_-c_--stat_--summary_master b/t/t4013/diff.diff-tree_-c_--stat_--summary_master deleted file mode 100644 index 81c3021541..0000000000 --- a/t/t4013/diff.diff-tree_-c_--stat_--summary_master +++ /dev/null @@ -1,6 +0,0 @@ -$ git diff-tree -c --stat --summary master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) -$ diff --git a/t/t4013/diff.diff-tree_-c_--stat_main b/t/t4013/diff.diff-tree_-c_--stat_main new file mode 100644 index 0000000000..61d9f450df --- /dev/null +++ b/t/t4013/diff.diff-tree_-c_--stat_main @@ -0,0 +1,6 @@ +$ git diff-tree -c --stat main +59d314ad6f356dd08601a4cd5e530381da3e3c64 + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) +$ diff --git a/t/t4013/diff.diff-tree_-c_--stat_master b/t/t4013/diff.diff-tree_-c_--stat_master deleted file mode 100644 index 89d59b1548..0000000000 --- a/t/t4013/diff.diff-tree_-c_--stat_master +++ /dev/null @@ -1,6 +0,0 @@ -$ git diff-tree -c --stat master -59d314ad6f356dd08601a4cd5e530381da3e3c64 - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) -$ diff --git a/t/t4013/diff.diff-tree_-c_main b/t/t4013/diff.diff-tree_-c_main new file mode 100644 index 0000000000..a84e1185cf --- /dev/null +++ b/t/t4013/diff.diff-tree_-c_main @@ -0,0 +1,5 @@ +$ git diff-tree -c main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +::100644 100644 100644 cead32e925b1420c84c14cbf7cf755e7e45af8ad 7289e35bff32727c08dda207511bec138fdb9ea5 992913c5aa0a5476d10c49ed0f21fc0c6d1aedf3 MM dir/sub +::100644 100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f MM file0 +$ diff --git a/t/t4013/diff.diff-tree_-c_master b/t/t4013/diff.diff-tree_-c_master deleted file mode 100644 index e2d2bb2611..0000000000 --- a/t/t4013/diff.diff-tree_-c_master +++ /dev/null @@ -1,5 +0,0 @@ -$ git diff-tree -c master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -::100644 100644 100644 cead32e925b1420c84c14cbf7cf755e7e45af8ad 7289e35bff32727c08dda207511bec138fdb9ea5 992913c5aa0a5476d10c49ed0f21fc0c6d1aedf3 MM dir/sub -::100644 100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f MM file0 -$ diff --git a/t/t4013/diff.diff-tree_-m_main b/t/t4013/diff.diff-tree_-m_main new file mode 100644 index 0000000000..5da1f7f525 --- /dev/null +++ b/t/t4013/diff.diff-tree_-m_main @@ -0,0 +1,11 @@ +$ git diff-tree -m main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +:040000 040000 65f5c9dd60ce3b2b3324b618ac7accf8d912c113 0564e026437809817a64fff393079714b6dd4628 M dir +:100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 10a8a9f3657f91a156b9f0184ed79a20adef9f7f M file0 +59d314ad6f356dd08601a4cd5e530381da3e3c64 +:040000 040000 f977ed46ae6873c1c30ab878e15a4accedc3618b 0564e026437809817a64fff393079714b6dd4628 M dir +:100644 100644 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f M file0 +:000000 100644 0000000000000000000000000000000000000000 b1e67221afe8461efd244b487afca22d46b95eb8 A file1 +:100644 000000 01e79c32a8c99c557f0757da7cb6d65b3414466d 0000000000000000000000000000000000000000 D file2 +:100644 000000 7289e35bff32727c08dda207511bec138fdb9ea5 0000000000000000000000000000000000000000 D file3 +$ diff --git a/t/t4013/diff.diff-tree_-m_master b/t/t4013/diff.diff-tree_-m_master deleted file mode 100644 index 6d0a2207fb..0000000000 --- a/t/t4013/diff.diff-tree_-m_master +++ /dev/null @@ -1,11 +0,0 @@ -$ git diff-tree -m master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -:040000 040000 65f5c9dd60ce3b2b3324b618ac7accf8d912c113 0564e026437809817a64fff393079714b6dd4628 M dir -:100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 10a8a9f3657f91a156b9f0184ed79a20adef9f7f M file0 -59d314ad6f356dd08601a4cd5e530381da3e3c64 -:040000 040000 f977ed46ae6873c1c30ab878e15a4accedc3618b 0564e026437809817a64fff393079714b6dd4628 M dir -:100644 100644 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f M file0 -:000000 100644 0000000000000000000000000000000000000000 b1e67221afe8461efd244b487afca22d46b95eb8 A file1 -:100644 000000 01e79c32a8c99c557f0757da7cb6d65b3414466d 0000000000000000000000000000000000000000 D file2 -:100644 000000 7289e35bff32727c08dda207511bec138fdb9ea5 0000000000000000000000000000000000000000 D file3 -$ diff --git a/t/t4013/diff.diff-tree_-p_-m_main b/t/t4013/diff.diff-tree_-p_-m_main new file mode 100644 index 0000000000..29c9fc20b8 --- /dev/null +++ b/t/t4013/diff.diff-tree_-p_-m_main @@ -0,0 +1,80 @@ +$ git diff-tree -p -m main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C +59d314ad6f356dd08601a4cd5e530381da3e3c64 +diff --git a/dir/sub b/dir/sub +index 7289e35..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,4 +1,8 @@ + A + B ++C ++D ++E ++F + 1 + 2 +diff --git a/file0 b/file0 +index f4615da..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -1,6 +1,9 @@ + 1 + 2 + 3 ++4 ++5 ++6 + A + B + C +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +diff --git a/file3 b/file3 +deleted file mode 100644 +index 7289e35..0000000 +--- a/file3 ++++ /dev/null +@@ -1,4 +0,0 @@ +-A +-B +-1 +-2 +$ diff --git a/t/t4013/diff.diff-tree_-p_-m_master b/t/t4013/diff.diff-tree_-p_-m_master deleted file mode 100644 index b60bea039d..0000000000 --- a/t/t4013/diff.diff-tree_-p_-m_master +++ /dev/null @@ -1,80 +0,0 @@ -$ git diff-tree -p -m master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C -59d314ad6f356dd08601a4cd5e530381da3e3c64 -diff --git a/dir/sub b/dir/sub -index 7289e35..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,4 +1,8 @@ - A - B -+C -+D -+E -+F - 1 - 2 -diff --git a/file0 b/file0 -index f4615da..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -1,6 +1,9 @@ - 1 - 2 - 3 -+4 -+5 -+6 - A - B - C -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -diff --git a/file3 b/file3 -deleted file mode 100644 -index 7289e35..0000000 ---- a/file3 -+++ /dev/null -@@ -1,4 +0,0 @@ --A --B --1 --2 -$ diff --git a/t/t4013/diff.diff-tree_-p_main b/t/t4013/diff.diff-tree_-p_main new file mode 100644 index 0000000000..c658062422 --- /dev/null +++ b/t/t4013/diff.diff-tree_-p_main @@ -0,0 +1,2 @@ +$ git diff-tree -p main +$ diff --git a/t/t4013/diff.diff-tree_-p_master b/t/t4013/diff.diff-tree_-p_master deleted file mode 100644 index b182875fb2..0000000000 --- a/t/t4013/diff.diff-tree_-p_master +++ /dev/null @@ -1,2 +0,0 @@ -$ git diff-tree -p master -$ diff --git a/t/t4013/diff.diff-tree_main b/t/t4013/diff.diff-tree_main new file mode 100644 index 0000000000..dc5b9fdeb6 --- /dev/null +++ b/t/t4013/diff.diff-tree_main @@ -0,0 +1,2 @@ +$ git diff-tree main +$ diff --git a/t/t4013/diff.diff-tree_master b/t/t4013/diff.diff-tree_master deleted file mode 100644 index fe9226f8a1..0000000000 --- a/t/t4013/diff.diff-tree_master +++ /dev/null @@ -1,2 +0,0 @@ -$ git diff-tree master -$ diff --git a/t/t4013/diff.diff_--dirstat_--cc_main~1_main b/t/t4013/diff.diff_--dirstat_--cc_main~1_main new file mode 100644 index 0000000000..168a357a02 --- /dev/null +++ b/t/t4013/diff.diff_--dirstat_--cc_main~1_main @@ -0,0 +1,3 @@ +$ git diff --dirstat --cc main~1 main + 40.0% dir/ +$ diff --git a/t/t4013/diff.diff_--dirstat_--cc_master~1_master b/t/t4013/diff.diff_--dirstat_--cc_master~1_master deleted file mode 100644 index fba4e34175..0000000000 --- a/t/t4013/diff.diff_--dirstat_--cc_master~1_master +++ /dev/null @@ -1,3 +0,0 @@ -$ git diff --dirstat --cc master~1 master - 40.0% dir/ -$ diff --git a/t/t4013/diff.diff_--dirstat_main~1_main~2 b/t/t4013/diff.diff_--dirstat_main~1_main~2 new file mode 100644 index 0000000000..6809733708 --- /dev/null +++ b/t/t4013/diff.diff_--dirstat_main~1_main~2 @@ -0,0 +1,3 @@ +$ git diff --dirstat main~1 main~2 + 40.0% dir/ +$ diff --git a/t/t4013/diff.diff_--dirstat_master~1_master~2 b/t/t4013/diff.diff_--dirstat_master~1_master~2 deleted file mode 100644 index b672e1ca63..0000000000 --- a/t/t4013/diff.diff_--dirstat_master~1_master~2 +++ /dev/null @@ -1,3 +0,0 @@ -$ git diff --dirstat master~1 master~2 - 40.0% dir/ -$ diff --git a/t/t4013/diff.diff_--line-prefix=abc_main_main^_side b/t/t4013/diff.diff_--line-prefix=abc_main_main^_side new file mode 100644 index 0000000000..67a2145a36 --- /dev/null +++ b/t/t4013/diff.diff_--line-prefix=abc_main_main^_side @@ -0,0 +1,29 @@ +$ git diff --line-prefix=abc main main^ side +abcdiff --cc dir/sub +abcindex cead32e,7289e35..992913c +abc--- a/dir/sub +abc+++ b/dir/sub +abc@@@ -1,6 -1,4 +1,8 @@@ +abc A +abc B +abc +C +abc +D +abc +E +abc +F +abc+ 1 +abc+ 2 +abcdiff --cc file0 +abcindex b414108,f4615da..10a8a9f +abc--- a/file0 +abc+++ b/file0 +abc@@@ -1,6 -1,6 +1,9 @@@ +abc 1 +abc 2 +abc 3 +abc +4 +abc +5 +abc +6 +abc+ A +abc+ B +abc+ C +$ diff --git a/t/t4013/diff.diff_--line-prefix=abc_master_master^_side b/t/t4013/diff.diff_--line-prefix=abc_master_master^_side deleted file mode 100644 index 99f91e7f0e..0000000000 --- a/t/t4013/diff.diff_--line-prefix=abc_master_master^_side +++ /dev/null @@ -1,29 +0,0 @@ -$ git diff --line-prefix=abc master master^ side -abcdiff --cc dir/sub -abcindex cead32e,7289e35..992913c -abc--- a/dir/sub -abc+++ b/dir/sub -abc@@@ -1,6 -1,4 +1,8 @@@ -abc A -abc B -abc +C -abc +D -abc +E -abc +F -abc+ 1 -abc+ 2 -abcdiff --cc file0 -abcindex b414108,f4615da..10a8a9f -abc--- a/file0 -abc+++ b/file0 -abc@@@ -1,6 -1,6 +1,9 @@@ -abc 1 -abc 2 -abc 3 -abc +4 -abc +5 -abc +6 -abc+ A -abc+ B -abc+ C -$ diff --git a/t/t4013/diff.diff_main_main^_side b/t/t4013/diff.diff_main_main^_side new file mode 100644 index 0000000000..ab81ec9e47 --- /dev/null +++ b/t/t4013/diff.diff_main_main^_side @@ -0,0 +1,29 @@ +$ git diff main main^ side +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.diff_master_master^_side b/t/t4013/diff.diff_master_master^_side deleted file mode 100644 index 50ec9cadd6..0000000000 --- a/t/t4013/diff.diff_master_master^_side +++ /dev/null @@ -1,29 +0,0 @@ -$ git diff master master^ side -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.format-patch_--attach_--stdout_initial..main b/t/t4013/diff.format-patch_--attach_--stdout_initial..main new file mode 100644 index 0000000000..9f56380350 --- /dev/null +++ b/t/t4013/diff.format-patch_--attach_--stdout_initial..main @@ -0,0 +1,170 @@ +$ git format-patch --attach --stdout initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/3] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/3] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0002-Third.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="0002-Third.patch" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH 3/3] Side +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0003-Side.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="0003-Side.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--attach_--stdout_initial..main^ b/t/t4013/diff.format-patch_--attach_--stdout_initial..main^ new file mode 100644 index 0000000000..80132ea99e --- /dev/null +++ b/t/t4013/diff.format-patch_--attach_--stdout_initial..main^ @@ -0,0 +1,110 @@ +$ git format-patch --attach --stdout initial..main^ +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/2] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/2] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0002-Third.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: attachment; filename="0002-Third.patch" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--attach_--stdout_initial..master b/t/t4013/diff.format-patch_--attach_--stdout_initial..master deleted file mode 100644 index 52fedc179e..0000000000 --- a/t/t4013/diff.format-patch_--attach_--stdout_initial..master +++ /dev/null @@ -1,170 +0,0 @@ -$ git format-patch --attach --stdout initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/3] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: attachment; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/3] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0002-Third.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: attachment; filename="0002-Third.patch" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH 3/3] Side -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0003-Side.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: attachment; filename="0003-Side.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--attach_--stdout_initial..master^ b/t/t4013/diff.format-patch_--attach_--stdout_initial..master^ deleted file mode 100644 index 1c3cde251b..0000000000 --- a/t/t4013/diff.format-patch_--attach_--stdout_initial..master^ +++ /dev/null @@ -1,110 +0,0 @@ -$ git format-patch --attach --stdout initial..master^ -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/2] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: attachment; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/2] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0002-Third.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: attachment; filename="0002-Third.patch" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..main b/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..main new file mode 100644 index 0000000000..8e889090fb --- /dev/null +++ b/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..main @@ -0,0 +1,170 @@ +$ git format-patch --inline --stdout --numbered-files initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/3] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="1" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="1" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/3] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="2" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="2" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH 3/3] Side +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="3" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="3" + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master b/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master deleted file mode 100644 index 02c4db7ec5..0000000000 --- a/t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master +++ /dev/null @@ -1,170 +0,0 @@ -$ git format-patch --inline --stdout --numbered-files initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/3] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="1" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="1" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/3] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="2" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="2" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH 3/3] Side -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="3" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="3" - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..main b/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..main new file mode 100644 index 0000000000..d7d2b12d15 --- /dev/null +++ b/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..main @@ -0,0 +1,170 @@ +$ git format-patch --inline --stdout --subject-prefix=TESTCASE initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [TESTCASE 1/3] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [TESTCASE 2/3] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0002-Third.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0002-Third.patch" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [TESTCASE 3/3] Side +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0003-Side.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0003-Side.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master b/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master deleted file mode 100644 index c7677c5951..0000000000 --- a/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master +++ /dev/null @@ -1,170 +0,0 @@ -$ git format-patch --inline --stdout --subject-prefix=TESTCASE initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [TESTCASE 1/3] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [TESTCASE 2/3] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0002-Third.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0002-Third.patch" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [TESTCASE 3/3] Side -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0003-Side.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0003-Side.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..main b/t/t4013/diff.format-patch_--inline_--stdout_initial..main new file mode 100644 index 0000000000..c49c423f82 --- /dev/null +++ b/t/t4013/diff.format-patch_--inline_--stdout_initial..main @@ -0,0 +1,170 @@ +$ git format-patch --inline --stdout initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/3] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/3] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0002-Third.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0002-Third.patch" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH 3/3] Side +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0003-Side.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0003-Side.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..main^ b/t/t4013/diff.format-patch_--inline_--stdout_initial..main^ new file mode 100644 index 0000000000..8669dbfe6c --- /dev/null +++ b/t/t4013/diff.format-patch_--inline_--stdout_initial..main^ @@ -0,0 +1,110 @@ +$ git format-patch --inline --stdout initial..main^ +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/2] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/2] Third +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0002-Third.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0002-Third.patch" + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..main^^ b/t/t4013/diff.format-patch_--inline_--stdout_initial..main^^ new file mode 100644 index 0000000000..b749be58b0 --- /dev/null +++ b/t/t4013/diff.format-patch_--inline_--stdout_initial..main^^ @@ -0,0 +1,62 @@ +$ git format-patch --inline --stdout initial..main^^ +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [DIFFERENT_PREFIX] Second +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" + +This is a multi-part message in MIME format. +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/plain; charset=UTF-8; format=fixed +Content-Transfer-Encoding: 8bit + + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + + +--------------g-i-t--v-e-r-s-i-o-n +Content-Type: text/x-patch; name="0001-Second.patch" +Content-Transfer-Encoding: 8bit +Content-Disposition: inline; filename="0001-Second.patch" + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +--------------g-i-t--v-e-r-s-i-o-n-- + + +$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..master b/t/t4013/diff.format-patch_--inline_--stdout_initial..master deleted file mode 100644 index 5b3e34e2c0..0000000000 --- a/t/t4013/diff.format-patch_--inline_--stdout_initial..master +++ /dev/null @@ -1,170 +0,0 @@ -$ git format-patch --inline --stdout initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/3] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/3] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0002-Third.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0002-Third.patch" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH 3/3] Side -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0003-Side.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0003-Side.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..master^ b/t/t4013/diff.format-patch_--inline_--stdout_initial..master^ deleted file mode 100644 index d13f8a8128..0000000000 --- a/t/t4013/diff.format-patch_--inline_--stdout_initial..master^ +++ /dev/null @@ -1,110 +0,0 @@ -$ git format-patch --inline --stdout initial..master^ -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/2] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/2] Third -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0002-Third.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0002-Third.patch" - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ b/t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ deleted file mode 100644 index caec5537de..0000000000 --- a/t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ +++ /dev/null @@ -1,62 +0,0 @@ -$ git format-patch --inline --stdout initial..master^^ -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [DIFFERENT_PREFIX] Second -MIME-Version: 1.0 -Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n" - -This is a multi-part message in MIME format. ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/plain; charset=UTF-8; format=fixed -Content-Transfer-Encoding: 8bit - - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - - ---------------g-i-t--v-e-r-s-i-o-n -Content-Type: text/x-patch; name="0001-Second.patch" -Content-Transfer-Encoding: 8bit -Content-Disposition: inline; filename="0001-Second.patch" - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - ---------------g-i-t--v-e-r-s-i-o-n-- - - -$ diff --git a/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..main^ b/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..main^ new file mode 100644 index 0000000000..567f222198 --- /dev/null +++ b/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..main^ @@ -0,0 +1,103 @@ +$ git format-patch --stdout --cover-letter -n initial..main^ +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: C O Mitter +Date: Mon, 26 Jun 2006 00:06:00 +0000 +Subject: [DIFFERENT_PREFIX 0/2] *** SUBJECT HERE *** + +*** BLURB HERE *** + +A U Thor (2): + Second + Third + + dir/sub | 4 ++++ + file0 | 3 +++ + file1 | 3 +++ + file2 | 3 --- + 4 files changed, 10 insertions(+), 3 deletions(-) + create mode 100644 file1 + delete mode 100644 file2 + +-- +g-i-t--v-e-r-s-i-o-n + +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [DIFFERENT_PREFIX 1/2] Second + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +-- +g-i-t--v-e-r-s-i-o-n + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [DIFFERENT_PREFIX 2/2] Third + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +-- +g-i-t--v-e-r-s-i-o-n + +$ diff --git a/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ b/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ deleted file mode 100644 index 244d964fc6..0000000000 --- a/t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ +++ /dev/null @@ -1,103 +0,0 @@ -$ git format-patch --stdout --cover-letter -n initial..master^ -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: C O Mitter -Date: Mon, 26 Jun 2006 00:06:00 +0000 -Subject: [DIFFERENT_PREFIX 0/2] *** SUBJECT HERE *** - -*** BLURB HERE *** - -A U Thor (2): - Second - Third - - dir/sub | 4 ++++ - file0 | 3 +++ - file1 | 3 +++ - file2 | 3 --- - 4 files changed, 10 insertions(+), 3 deletions(-) - create mode 100644 file1 - delete mode 100644 file2 - --- -g-i-t--v-e-r-s-i-o-n - -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [DIFFERENT_PREFIX 1/2] Second - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 --- -g-i-t--v-e-r-s-i-o-n - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [DIFFERENT_PREFIX 2/2] Third - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C --- -g-i-t--v-e-r-s-i-o-n - -$ diff --git a/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..main b/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..main new file mode 100644 index 0000000000..195b62ea4f --- /dev/null +++ b/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..main @@ -0,0 +1,127 @@ +$ git format-patch --stdout --no-numbered initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH] Second + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +-- +g-i-t--v-e-r-s-i-o-n + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH] Third + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +-- +g-i-t--v-e-r-s-i-o-n + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH] Side + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 +-- +g-i-t--v-e-r-s-i-o-n + +$ diff --git a/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master b/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master deleted file mode 100644 index bfc287a147..0000000000 --- a/t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master +++ /dev/null @@ -1,127 +0,0 @@ -$ git format-patch --stdout --no-numbered initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH] Second - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 --- -g-i-t--v-e-r-s-i-o-n - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH] Third - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C --- -g-i-t--v-e-r-s-i-o-n - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH] Side - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 --- -g-i-t--v-e-r-s-i-o-n - -$ diff --git a/t/t4013/diff.format-patch_--stdout_--numbered_initial..main b/t/t4013/diff.format-patch_--stdout_--numbered_initial..main new file mode 100644 index 0000000000..0678a38515 --- /dev/null +++ b/t/t4013/diff.format-patch_--stdout_--numbered_initial..main @@ -0,0 +1,127 @@ +$ git format-patch --stdout --numbered initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/3] Second + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +-- +g-i-t--v-e-r-s-i-o-n + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/3] Third + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +-- +g-i-t--v-e-r-s-i-o-n + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH 3/3] Side + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 +-- +g-i-t--v-e-r-s-i-o-n + +$ diff --git a/t/t4013/diff.format-patch_--stdout_--numbered_initial..master b/t/t4013/diff.format-patch_--stdout_--numbered_initial..master deleted file mode 100644 index 568f6f584e..0000000000 --- a/t/t4013/diff.format-patch_--stdout_--numbered_initial..master +++ /dev/null @@ -1,127 +0,0 @@ -$ git format-patch --stdout --numbered initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/3] Second - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 --- -g-i-t--v-e-r-s-i-o-n - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/3] Third - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C --- -g-i-t--v-e-r-s-i-o-n - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH 3/3] Side - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 --- -g-i-t--v-e-r-s-i-o-n - -$ diff --git a/t/t4013/diff.format-patch_--stdout_initial..main b/t/t4013/diff.format-patch_--stdout_initial..main new file mode 100644 index 0000000000..b4a6302e7c --- /dev/null +++ b/t/t4013/diff.format-patch_--stdout_initial..main @@ -0,0 +1,127 @@ +$ git format-patch --stdout initial..main +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/3] Second + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +-- +g-i-t--v-e-r-s-i-o-n + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/3] Third + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +-- +g-i-t--v-e-r-s-i-o-n + + +From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:03:00 +0000 +Subject: [PATCH 3/3] Side + +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 +-- +g-i-t--v-e-r-s-i-o-n + +$ diff --git a/t/t4013/diff.format-patch_--stdout_initial..main^ b/t/t4013/diff.format-patch_--stdout_initial..main^ new file mode 100644 index 0000000000..36b3221582 --- /dev/null +++ b/t/t4013/diff.format-patch_--stdout_initial..main^ @@ -0,0 +1,81 @@ +$ git format-patch --stdout initial..main^ +From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:01:00 +0000 +Subject: [PATCH 1/2] Second + +This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +-- +g-i-t--v-e-r-s-i-o-n + + +From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 +From: A U Thor +Date: Mon, 26 Jun 2006 00:02:00 +0000 +Subject: [PATCH 2/2] Third + +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +-- +g-i-t--v-e-r-s-i-o-n + +$ diff --git a/t/t4013/diff.format-patch_--stdout_initial..master b/t/t4013/diff.format-patch_--stdout_initial..master deleted file mode 100644 index 5f0352f9f7..0000000000 --- a/t/t4013/diff.format-patch_--stdout_initial..master +++ /dev/null @@ -1,127 +0,0 @@ -$ git format-patch --stdout initial..master -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/3] Second - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 --- -g-i-t--v-e-r-s-i-o-n - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/3] Third - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C --- -g-i-t--v-e-r-s-i-o-n - - -From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:03:00 +0000 -Subject: [PATCH 3/3] Side - ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 --- -g-i-t--v-e-r-s-i-o-n - -$ diff --git a/t/t4013/diff.format-patch_--stdout_initial..master^ b/t/t4013/diff.format-patch_--stdout_initial..master^ deleted file mode 100644 index 2ae454d807..0000000000 --- a/t/t4013/diff.format-patch_--stdout_initial..master^ +++ /dev/null @@ -1,81 +0,0 @@ -$ git format-patch --stdout initial..master^ -From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:01:00 +0000 -Subject: [PATCH 1/2] Second - -This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 --- -g-i-t--v-e-r-s-i-o-n - - -From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 -From: A U Thor -Date: Mon, 26 Jun 2006 00:02:00 +0000 -Subject: [PATCH 2/2] Third - ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C --- -g-i-t--v-e-r-s-i-o-n - -$ diff --git a/t/t4013/diff.log_--cc_-m_-p_main b/t/t4013/diff.log_--cc_-m_-p_main new file mode 100644 index 0000000000..f32746ea3e --- /dev/null +++ b/t/t4013/diff.log_--cc_-m_-p_main @@ -0,0 +1,200 @@ +$ git log --cc -m -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index 7289e35..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,4 +1,8 @@ + A + B ++C ++D ++E ++F + 1 + 2 +diff --git a/file0 b/file0 +index f4615da..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -1,6 +1,9 @@ + 1 + 2 + 3 ++4 ++5 ++6 + A + B + C +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +diff --git a/file3 b/file3 +deleted file mode 100644 +index 7289e35..0000000 +--- a/file3 ++++ /dev/null +@@ -1,4 +0,0 @@ +-A +-B +-1 +-2 + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--cc_-m_-p_master b/t/t4013/diff.log_--cc_-m_-p_master deleted file mode 100644 index 7c217cf348..0000000000 --- a/t/t4013/diff.log_--cc_-m_-p_master +++ /dev/null @@ -1,200 +0,0 @@ -$ git log --cc -m -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index 7289e35..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,4 +1,8 @@ - A - B -+C -+D -+E -+F - 1 - 2 -diff --git a/file0 b/file0 -index f4615da..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -1,6 +1,9 @@ - 1 - 2 - 3 -+4 -+5 -+6 - A - B - C -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -diff --git a/file3 b/file3 -deleted file mode 100644 -index 7289e35..0000000 ---- a/file3 -+++ /dev/null -@@ -1,4 +0,0 @@ --A --B --1 --2 - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--decorate=full_--all b/t/t4013/diff.log_--decorate=full_--all index 6b0b334a5d..c099399525 100644 --- a/t/t4013/diff.log_--decorate=full_--all +++ b/t/t4013/diff.log_--decorate=full_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--decorate=full_--clear-decorations_--all b/t/t4013/diff.log_--decorate=full_--clear-decorations_--all index 1c030a6554..c43684e536 100644 --- a/t/t4013/diff.log_--decorate=full_--clear-decorations_--all +++ b/t/t4013/diff.log_--decorate=full_--clear-decorations_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--decorate=full_--decorate-all_--all b/t/t4013/diff.log_--decorate=full_--decorate-all_--all index d6e7928784..48dca61681 100644 --- a/t/t4013/diff.log_--decorate=full_--decorate-all_--all +++ b/t/t4013/diff.log_--decorate=full_--decorate-all_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--decorate_--all b/t/t4013/diff.log_--decorate_--all index c7df1f5814..8bbf891f65 100644 --- a/t/t4013/diff.log_--decorate_--all +++ b/t/t4013/diff.log_--decorate_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--decorate_--clear-decorations_--all b/t/t4013/diff.log_--decorate_--clear-decorations_--all index 88be82cce3..86b1353f51 100644 --- a/t/t4013/diff.log_--decorate_--clear-decorations_--all +++ b/t/t4013/diff.log_--decorate_--clear-decorations_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--decorate_--decorate-all_--all b/t/t4013/diff.log_--decorate_--decorate-all_--all index 5d22618bb6..59fb17bfc5 100644 --- a/t/t4013/diff.log_--decorate_--decorate-all_--all +++ b/t/t4013/diff.log_--decorate_--decorate-all_--all @@ -26,7 +26,7 @@ Date: Mon Jun 26 00:06:00 2006 +0000 Notes added by 'git notes add' -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) Merge: 9a6d494 c7a2ab9 Author: A U Thor Date: Mon Jun 26 00:04:00 2006 +0000 diff --git a/t/t4013/diff.log_--diff-merges=first-parent_main b/t/t4013/diff.log_--diff-merges=first-parent_main new file mode 100644 index 0000000000..bacee621e5 --- /dev/null +++ b/t/t4013/diff.log_--diff-merges=first-parent_main @@ -0,0 +1,56 @@ +$ git log --diff-merges=first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--diff-merges=first-parent_master b/t/t4013/diff.log_--diff-merges=first-parent_master deleted file mode 100644 index fa63a557dd..0000000000 --- a/t/t4013/diff.log_--diff-merges=first-parent_master +++ /dev/null @@ -1,56 +0,0 @@ -$ git log --diff-merges=first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_main b/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_main new file mode 100644 index 0000000000..fe180fda3b --- /dev/null +++ b/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_main @@ -0,0 +1,78 @@ +$ git log --diff-merges=off -p --first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_master b/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_master deleted file mode 100644 index 194e893c94..0000000000 --- a/t/t4013/diff.log_--diff-merges=off_-p_--first-parent_master +++ /dev/null @@ -1,78 +0,0 @@ -$ git log --diff-merges=off -p --first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_main b/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_main new file mode 100644 index 0000000000..dca62d4e60 --- /dev/null +++ b/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_main @@ -0,0 +1,78 @@ +$ git log --first-parent --diff-merges=off -p main +commit 80e25ffa65bcdbe82ef654b4d06dbbde7945c37f +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_master b/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_master deleted file mode 100644 index 5d7461a167..0000000000 --- a/t/t4013/diff.log_--first-parent_--diff-merges=off_-p_master +++ /dev/null @@ -1,78 +0,0 @@ -$ git log --first-parent --diff-merges=off -p master -commit 80e25ffa65bcdbe82ef654b4d06dbbde7945c37f -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_main b/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_main new file mode 100644 index 0000000000..0b54118088 --- /dev/null +++ b/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_main @@ -0,0 +1,78 @@ +$ git log --no-diff-merges -p --first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_master b/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_master deleted file mode 100644 index 597002232e..0000000000 --- a/t/t4013/diff.log_--no-diff-merges_-p_--first-parent_master +++ /dev/null @@ -1,78 +0,0 @@ -$ git log --no-diff-merges -p --first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--patch-with-stat_--summary_main_--_dir_ b/t/t4013/diff.log_--patch-with-stat_--summary_main_--_dir_ new file mode 100644 index 0000000000..3ed46cc867 --- /dev/null +++ b/t/t4013/diff.log_--patch-with-stat_--summary_main_--_dir_ @@ -0,0 +1,74 @@ +$ git log --patch-with-stat --summary main -- dir/ +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_ b/t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_ deleted file mode 100644 index a18f1472a9..0000000000 --- a/t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_ +++ /dev/null @@ -1,74 +0,0 @@ -$ git log --patch-with-stat --summary master -- dir/ -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--patch-with-stat_main b/t/t4013/diff.log_--patch-with-stat_main new file mode 100644 index 0000000000..2e12b557cb --- /dev/null +++ b/t/t4013/diff.log_--patch-with-stat_main @@ -0,0 +1,129 @@ +$ git log --patch-with-stat main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--patch-with-stat_main_--_dir_ b/t/t4013/diff.log_--patch-with-stat_main_--_dir_ new file mode 100644 index 0000000000..d511ea7f6b --- /dev/null +++ b/t/t4013/diff.log_--patch-with-stat_main_--_dir_ @@ -0,0 +1,74 @@ +$ git log --patch-with-stat main -- dir/ +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--patch-with-stat_master b/t/t4013/diff.log_--patch-with-stat_master deleted file mode 100644 index ae425c4672..0000000000 --- a/t/t4013/diff.log_--patch-with-stat_master +++ /dev/null @@ -1,129 +0,0 @@ -$ git log --patch-with-stat master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--patch-with-stat_master_--_dir_ b/t/t4013/diff.log_--patch-with-stat_master_--_dir_ deleted file mode 100644 index d5207cadf4..0000000000 --- a/t/t4013/diff.log_--patch-with-stat_master_--_dir_ +++ /dev/null @@ -1,74 +0,0 @@ -$ git log --patch-with-stat master -- dir/ -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_main b/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..3cfd0e6422 --- /dev/null +++ b/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_main @@ -0,0 +1,199 @@ +$ git log --root --cc --patch-with-stat --summary main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master b/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master deleted file mode 100644 index 0fc1e8cd71..0000000000 --- a/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master +++ /dev/null @@ -1,199 +0,0 @@ -$ git log --root --cc --patch-with-stat --summary master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.log_--root_--patch-with-stat_--summary_main b/t/t4013/diff.log_--root_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..9f4d6dfa44 --- /dev/null +++ b/t/t4013/diff.log_--root_--patch-with-stat_--summary_main @@ -0,0 +1,167 @@ +$ git log --root --patch-with-stat --summary main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.log_--root_--patch-with-stat_--summary_master b/t/t4013/diff.log_--root_--patch-with-stat_--summary_master deleted file mode 100644 index dffc09dde9..0000000000 --- a/t/t4013/diff.log_--root_--patch-with-stat_--summary_master +++ /dev/null @@ -1,167 +0,0 @@ -$ git log --root --patch-with-stat --summary master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.log_--root_--patch-with-stat_main b/t/t4013/diff.log_--root_--patch-with-stat_main new file mode 100644 index 0000000000..0d69ae2e11 --- /dev/null +++ b/t/t4013/diff.log_--root_--patch-with-stat_main @@ -0,0 +1,161 @@ +$ git log --root --patch-with-stat main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.log_--root_--patch-with-stat_master b/t/t4013/diff.log_--root_--patch-with-stat_master deleted file mode 100644 index 55aa98012d..0000000000 --- a/t/t4013/diff.log_--root_--patch-with-stat_master +++ /dev/null @@ -1,161 +0,0 @@ -$ git log --root --patch-with-stat master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_main b/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..1b71add9de --- /dev/null +++ b/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_main @@ -0,0 +1,199 @@ +$ git log --root -c --patch-with-stat --summary main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --combined dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --combined file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master b/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master deleted file mode 100644 index 019d85f7de..0000000000 --- a/t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master +++ /dev/null @@ -1,199 +0,0 @@ -$ git log --root -c --patch-with-stat --summary master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --combined dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --combined file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.log_--root_-p_main b/t/t4013/diff.log_--root_-p_main new file mode 100644 index 0000000000..04581296ed --- /dev/null +++ b/t/t4013/diff.log_--root_-p_main @@ -0,0 +1,142 @@ +$ git log --root -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.log_--root_-p_master b/t/t4013/diff.log_--root_-p_master deleted file mode 100644 index b42c334439..0000000000 --- a/t/t4013/diff.log_--root_-p_master +++ /dev/null @@ -1,142 +0,0 @@ -$ git log --root -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.log_--root_main b/t/t4013/diff.log_--root_main new file mode 100644 index 0000000000..d5e90fd6b4 --- /dev/null +++ b/t/t4013/diff.log_--root_main @@ -0,0 +1,34 @@ +$ git log --root main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_--root_master b/t/t4013/diff.log_--root_master deleted file mode 100644 index e8f46159da..0000000000 --- a/t/t4013/diff.log_--root_master +++ /dev/null @@ -1,34 +0,0 @@ -$ git log --root master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-GF_-p_--pickaxe-all_main b/t/t4013/diff.log_-GF_-p_--pickaxe-all_main new file mode 100644 index 0000000000..1f7a497c2d --- /dev/null +++ b/t/t4013/diff.log_-GF_-p_--pickaxe-all_main @@ -0,0 +1,27 @@ +$ git log -GF -p --pickaxe-all main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +$ diff --git a/t/t4013/diff.log_-GF_-p_--pickaxe-all_master b/t/t4013/diff.log_-GF_-p_--pickaxe-all_master deleted file mode 100644 index d36f88098b..0000000000 --- a/t/t4013/diff.log_-GF_-p_--pickaxe-all_master +++ /dev/null @@ -1,27 +0,0 @@ -$ git log -GF -p --pickaxe-all master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -$ diff --git a/t/t4013/diff.log_-GF_-p_main b/t/t4013/diff.log_-GF_-p_main new file mode 100644 index 0000000000..c80dda41e9 --- /dev/null +++ b/t/t4013/diff.log_-GF_-p_main @@ -0,0 +1,18 @@ +$ git log -GF -p main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +$ diff --git a/t/t4013/diff.log_-GF_-p_master b/t/t4013/diff.log_-GF_-p_master deleted file mode 100644 index 9d93f2c23a..0000000000 --- a/t/t4013/diff.log_-GF_-p_master +++ /dev/null @@ -1,18 +0,0 @@ -$ git log -GF -p master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -$ diff --git a/t/t4013/diff.log_-GF_main b/t/t4013/diff.log_-GF_main new file mode 100644 index 0000000000..b94a7f7839 --- /dev/null +++ b/t/t4013/diff.log_-GF_main @@ -0,0 +1,7 @@ +$ git log -GF main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +$ diff --git a/t/t4013/diff.log_-GF_master b/t/t4013/diff.log_-GF_master deleted file mode 100644 index 4c6708d2d0..0000000000 --- a/t/t4013/diff.log_-GF_master +++ /dev/null @@ -1,7 +0,0 @@ -$ git log -GF master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third -$ diff --git a/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main b/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main new file mode 100644 index 0000000000..67e26b4e54 --- /dev/null +++ b/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main @@ -0,0 +1,99 @@ +$ git log -IA -IB -I1 -I2 -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master b/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master deleted file mode 100644 index 929f35a05b..0000000000 --- a/t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master +++ /dev/null @@ -1,99 +0,0 @@ -$ git log -IA -IB -I1 -I2 -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-SF_-p_main b/t/t4013/diff.log_-SF_-p_main new file mode 100644 index 0000000000..fa82ac1490 --- /dev/null +++ b/t/t4013/diff.log_-SF_-p_main @@ -0,0 +1,18 @@ +$ git log -SF -p main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +$ diff --git a/t/t4013/diff.log_-SF_-p_master b/t/t4013/diff.log_-SF_-p_master deleted file mode 100644 index 5e32438972..0000000000 --- a/t/t4013/diff.log_-SF_-p_master +++ /dev/null @@ -1,18 +0,0 @@ -$ git log -SF -p master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -$ diff --git a/t/t4013/diff.log_-SF_main b/t/t4013/diff.log_-SF_main new file mode 100644 index 0000000000..dbf770db49 --- /dev/null +++ b/t/t4013/diff.log_-SF_main @@ -0,0 +1,7 @@ +$ git log -SF main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +$ diff --git a/t/t4013/diff.log_-SF_main_--max-count=0 b/t/t4013/diff.log_-SF_main_--max-count=0 new file mode 100644 index 0000000000..683b17eb99 --- /dev/null +++ b/t/t4013/diff.log_-SF_main_--max-count=0 @@ -0,0 +1,2 @@ +$ git log -SF main --max-count=0 +$ diff --git a/t/t4013/diff.log_-SF_main_--max-count=1 b/t/t4013/diff.log_-SF_main_--max-count=1 new file mode 100644 index 0000000000..2102426f8c --- /dev/null +++ b/t/t4013/diff.log_-SF_main_--max-count=1 @@ -0,0 +1,7 @@ +$ git log -SF main --max-count=1 +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +$ diff --git a/t/t4013/diff.log_-SF_main_--max-count=2 b/t/t4013/diff.log_-SF_main_--max-count=2 new file mode 100644 index 0000000000..23e12a4cbb --- /dev/null +++ b/t/t4013/diff.log_-SF_main_--max-count=2 @@ -0,0 +1,7 @@ +$ git log -SF main --max-count=2 +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +$ diff --git a/t/t4013/diff.log_-SF_master b/t/t4013/diff.log_-SF_master deleted file mode 100644 index c1599f2f52..0000000000 --- a/t/t4013/diff.log_-SF_master +++ /dev/null @@ -1,7 +0,0 @@ -$ git log -SF master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third -$ diff --git a/t/t4013/diff.log_-SF_master_--max-count=0 b/t/t4013/diff.log_-SF_master_--max-count=0 deleted file mode 100644 index c1fc6c8731..0000000000 --- a/t/t4013/diff.log_-SF_master_--max-count=0 +++ /dev/null @@ -1,2 +0,0 @@ -$ git log -SF master --max-count=0 -$ diff --git a/t/t4013/diff.log_-SF_master_--max-count=1 b/t/t4013/diff.log_-SF_master_--max-count=1 deleted file mode 100644 index c981a03814..0000000000 --- a/t/t4013/diff.log_-SF_master_--max-count=1 +++ /dev/null @@ -1,7 +0,0 @@ -$ git log -SF master --max-count=1 -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third -$ diff --git a/t/t4013/diff.log_-SF_master_--max-count=2 b/t/t4013/diff.log_-SF_master_--max-count=2 deleted file mode 100644 index a6c55fd482..0000000000 --- a/t/t4013/diff.log_-SF_master_--max-count=2 +++ /dev/null @@ -1,7 +0,0 @@ -$ git log -SF master --max-count=2 -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third -$ diff --git a/t/t4013/diff.log_-S_F_main b/t/t4013/diff.log_-S_F_main new file mode 100644 index 0000000000..a75a42e143 --- /dev/null +++ b/t/t4013/diff.log_-S_F_main @@ -0,0 +1,7 @@ +$ git log -S F main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +$ diff --git a/t/t4013/diff.log_-S_F_master b/t/t4013/diff.log_-S_F_master deleted file mode 100644 index 978d2b4118..0000000000 --- a/t/t4013/diff.log_-S_F_master +++ /dev/null @@ -1,7 +0,0 @@ -$ git log -S F master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third -$ diff --git a/t/t4013/diff.log_-c_-m_-p_main b/t/t4013/diff.log_-c_-m_-p_main new file mode 100644 index 0000000000..427f732456 --- /dev/null +++ b/t/t4013/diff.log_-c_-m_-p_main @@ -0,0 +1,200 @@ +$ git log -c -m -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index 7289e35..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,4 +1,8 @@ + A + B ++C ++D ++E ++F + 1 + 2 +diff --git a/file0 b/file0 +index f4615da..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -1,6 +1,9 @@ + 1 + 2 + 3 ++4 ++5 ++6 + A + B + C +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +diff --git a/file3 b/file3 +deleted file mode 100644 +index 7289e35..0000000 +--- a/file3 ++++ /dev/null +@@ -1,4 +0,0 @@ +-A +-B +-1 +-2 + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-c_-m_-p_master b/t/t4013/diff.log_-c_-m_-p_master deleted file mode 100644 index b660f3d5f2..0000000000 --- a/t/t4013/diff.log_-c_-m_-p_master +++ /dev/null @@ -1,200 +0,0 @@ -$ git log -c -m -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index 7289e35..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,4 +1,8 @@ - A - B -+C -+D -+E -+F - 1 - 2 -diff --git a/file0 b/file0 -index f4615da..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -1,6 +1,9 @@ - 1 - 2 - 3 -+4 -+5 -+6 - A - B - C -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -diff --git a/file3 b/file3 -deleted file mode 100644 -index 7289e35..0000000 ---- a/file3 -+++ /dev/null -@@ -1,4 +0,0 @@ --A --B --1 --2 - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-m_--raw_main b/t/t4013/diff.log_-m_--raw_main new file mode 100644 index 0000000000..31d9bc7707 --- /dev/null +++ b/t/t4013/diff.log_-m_--raw_main @@ -0,0 +1,61 @@ +$ git log -m --raw main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +:100644 100644 cead32e... 992913c... M dir/sub +:100644 100644 b414108... 10a8a9f... M file0 + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +:100644 100644 7289e35... 992913c... M dir/sub +:100644 100644 f4615da... 10a8a9f... M file0 +:000000 100644 0000000... b1e6722... A file1 +:100644 000000 01e79c3... 0000000... D file2 +:100644 000000 7289e35... 0000000... D file3 + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +:100644 100644 35d242b... 7289e35... M dir/sub +:100644 100644 01e79c3... f4615da... M file0 +:000000 100644 0000000... 7289e35... A file3 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40... cead32e... M dir/sub +:000000 100644 0000000... b1e6722... A file1 + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +:100644 100644 35d242b... 8422d40... M dir/sub +:100644 100644 01e79c3... b414108... M file0 +:100644 000000 01e79c3... 0000000... D file2 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-m_--raw_master b/t/t4013/diff.log_-m_--raw_master deleted file mode 100644 index cd2ecc4628..0000000000 --- a/t/t4013/diff.log_-m_--raw_master +++ /dev/null @@ -1,61 +0,0 @@ -$ git log -m --raw master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -:100644 100644 cead32e... 992913c... M dir/sub -:100644 100644 b414108... 10a8a9f... M file0 - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -:100644 100644 7289e35... 992913c... M dir/sub -:100644 100644 f4615da... 10a8a9f... M file0 -:000000 100644 0000000... b1e6722... A file1 -:100644 000000 01e79c3... 0000000... D file2 -:100644 000000 7289e35... 0000000... D file3 - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -:100644 100644 35d242b... 7289e35... M dir/sub -:100644 100644 01e79c3... f4615da... M file0 -:000000 100644 0000000... 7289e35... A file3 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40... cead32e... M dir/sub -:000000 100644 0000000... b1e6722... A file1 - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -:100644 100644 35d242b... 8422d40... M dir/sub -:100644 100644 01e79c3... b414108... M file0 -:100644 000000 01e79c3... 0000000... D file2 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-m_--stat_main b/t/t4013/diff.log_-m_--stat_main new file mode 100644 index 0000000000..4c8909229b --- /dev/null +++ b/t/t4013/diff.log_-m_--stat_main @@ -0,0 +1,66 @@ +$ git log -m --stat main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 4 ++++ + file0 | 3 +++ + file1 | 3 +++ + file2 | 3 --- + file3 | 4 ---- + 5 files changed, 10 insertions(+), 7 deletions(-) + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-m_--stat_master b/t/t4013/diff.log_-m_--stat_master deleted file mode 100644 index c7db084fd9..0000000000 --- a/t/t4013/diff.log_-m_--stat_master +++ /dev/null @@ -1,66 +0,0 @@ -$ git log -m --stat master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 4 ++++ - file0 | 3 +++ - file1 | 3 +++ - file2 | 3 --- - file3 | 4 ---- - 5 files changed, 10 insertions(+), 7 deletions(-) - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-m_-p_--first-parent_main b/t/t4013/diff.log_-m_-p_--first-parent_main new file mode 100644 index 0000000000..459e10786b --- /dev/null +++ b/t/t4013/diff.log_-m_-p_--first-parent_main @@ -0,0 +1,100 @@ +$ git log -m -p --first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-m_-p_--first-parent_master b/t/t4013/diff.log_-m_-p_--first-parent_master deleted file mode 100644 index 7a0073f529..0000000000 --- a/t/t4013/diff.log_-m_-p_--first-parent_master +++ /dev/null @@ -1,100 +0,0 @@ -$ git log -m -p --first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-m_-p_main b/t/t4013/diff.log_-m_-p_main new file mode 100644 index 0000000000..07453c5698 --- /dev/null +++ b/t/t4013/diff.log_-m_-p_main @@ -0,0 +1,200 @@ +$ git log -m -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index 7289e35..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,4 +1,8 @@ + A + B ++C ++D ++E ++F + 1 + 2 +diff --git a/file0 b/file0 +index f4615da..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -1,6 +1,9 @@ + 1 + 2 + 3 ++4 ++5 ++6 + A + B + C +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +diff --git a/file3 b/file3 +deleted file mode 100644 +index 7289e35..0000000 +--- a/file3 ++++ /dev/null +@@ -1,4 +0,0 @@ +-A +-B +-1 +-2 + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-m_-p_master b/t/t4013/diff.log_-m_-p_master deleted file mode 100644 index 9ca62a01ed..0000000000 --- a/t/t4013/diff.log_-m_-p_master +++ /dev/null @@ -1,200 +0,0 @@ -$ git log -m -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index 7289e35..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,4 +1,8 @@ - A - B -+C -+D -+E -+F - 1 - 2 -diff --git a/file0 b/file0 -index f4615da..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -1,6 +1,9 @@ - 1 - 2 - 3 -+4 -+5 -+6 - A - B - C -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -diff --git a/file3 b/file3 -deleted file mode 100644 -index 7289e35..0000000 ---- a/file3 -+++ /dev/null -@@ -1,4 +0,0 @@ --A --B --1 --2 - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-p_--diff-merges=first-parent_main b/t/t4013/diff.log_-p_--diff-merges=first-parent_main new file mode 100644 index 0000000000..264a2f373e --- /dev/null +++ b/t/t4013/diff.log_-p_--diff-merges=first-parent_main @@ -0,0 +1,137 @@ +$ git log -p --diff-merges=first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-p_--diff-merges=first-parent_master b/t/t4013/diff.log_-p_--diff-merges=first-parent_master deleted file mode 100644 index 9538a27511..0000000000 --- a/t/t4013/diff.log_-p_--diff-merges=first-parent_master +++ /dev/null @@ -1,137 +0,0 @@ -$ git log -p --diff-merges=first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-p_--first-parent_main b/t/t4013/diff.log_-p_--first-parent_main new file mode 100644 index 0000000000..247980817b --- /dev/null +++ b/t/t4013/diff.log_-p_--first-parent_main @@ -0,0 +1,100 @@ +$ git log -p --first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-p_--first-parent_master b/t/t4013/diff.log_-p_--first-parent_master deleted file mode 100644 index 28840ebea1..0000000000 --- a/t/t4013/diff.log_-p_--first-parent_master +++ /dev/null @@ -1,100 +0,0 @@ -$ git log -p --first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_-p_main b/t/t4013/diff.log_-p_main new file mode 100644 index 0000000000..c82b4dbf16 --- /dev/null +++ b/t/t4013/diff.log_-p_main @@ -0,0 +1,115 @@ +$ git log -p main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_-p_master b/t/t4013/diff.log_-p_master deleted file mode 100644 index bf1326dc36..0000000000 --- a/t/t4013/diff.log_-p_master +++ /dev/null @@ -1,115 +0,0 @@ -$ git log -p master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.log_main b/t/t4013/diff.log_main new file mode 100644 index 0000000000..50401f73e6 --- /dev/null +++ b/t/t4013/diff.log_main @@ -0,0 +1,34 @@ +$ git log main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +$ diff --git a/t/t4013/diff.log_master b/t/t4013/diff.log_master deleted file mode 100644 index a8f6ce5abd..0000000000 --- a/t/t4013/diff.log_master +++ /dev/null @@ -1,34 +0,0 @@ -$ git log master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial -$ diff --git a/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main b/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main new file mode 100644 index 0000000000..3aa1f80af3 --- /dev/null +++ b/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main @@ -0,0 +1,5 @@ +$ git diff-tree -c --abbrev main +59d314ad6f356dd08601a4cd5e530381da3e3c64 +::100644 100644 100644 cead32e 7289e35 992913c MM dir/sub +::100644 100644 100644 b414108 f4615da 10a8a9f MM file0 +$ diff --git a/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master b/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master deleted file mode 100644 index bb80f013b3..0000000000 --- a/t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master +++ /dev/null @@ -1,5 +0,0 @@ -$ git diff-tree -c --abbrev master -59d314ad6f356dd08601a4cd5e530381da3e3c64 -::100644 100644 100644 cead32e 7289e35 992913c MM dir/sub -::100644 100644 100644 b414108 f4615da 10a8a9f MM file0 -$ diff --git a/t/t4013/diff.noellipses-whatchanged_--root_main b/t/t4013/diff.noellipses-whatchanged_--root_main new file mode 100644 index 0000000000..2bec055835 --- /dev/null +++ b/t/t4013/diff.noellipses-whatchanged_--root_main @@ -0,0 +1,42 @@ +$ git whatchanged --root main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +:100644 100644 35d242b 7289e35 M dir/sub +:100644 100644 01e79c3 f4615da M file0 +:000000 100644 0000000 7289e35 A file3 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40 cead32e M dir/sub +:000000 100644 0000000 b1e6722 A file1 + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +:100644 100644 35d242b 8422d40 M dir/sub +:100644 100644 01e79c3 b414108 M file0 +:100644 000000 01e79c3 0000000 D file2 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial + +:000000 100644 0000000 35d242b A dir/sub +:000000 100644 0000000 01e79c3 A file0 +:000000 100644 0000000 01e79c3 A file2 +$ diff --git a/t/t4013/diff.noellipses-whatchanged_--root_master b/t/t4013/diff.noellipses-whatchanged_--root_master deleted file mode 100644 index c2cfd4e729..0000000000 --- a/t/t4013/diff.noellipses-whatchanged_--root_master +++ /dev/null @@ -1,42 +0,0 @@ -$ git whatchanged --root master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -:100644 100644 35d242b 7289e35 M dir/sub -:100644 100644 01e79c3 f4615da M file0 -:000000 100644 0000000 7289e35 A file3 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40 cead32e M dir/sub -:000000 100644 0000000 b1e6722 A file1 - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -:100644 100644 35d242b 8422d40 M dir/sub -:100644 100644 01e79c3 b414108 M file0 -:100644 000000 01e79c3 0000000 D file2 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial - -:000000 100644 0000000 35d242b A dir/sub -:000000 100644 0000000 01e79c3 A file0 -:000000 100644 0000000 01e79c3 A file2 -$ diff --git a/t/t4013/diff.noellipses-whatchanged_-SF_main b/t/t4013/diff.noellipses-whatchanged_-SF_main new file mode 100644 index 0000000000..0c1476d19e --- /dev/null +++ b/t/t4013/diff.noellipses-whatchanged_-SF_main @@ -0,0 +1,9 @@ +$ git whatchanged -SF main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40 cead32e M dir/sub +$ diff --git a/t/t4013/diff.noellipses-whatchanged_-SF_master b/t/t4013/diff.noellipses-whatchanged_-SF_master deleted file mode 100644 index b36ce5886e..0000000000 --- a/t/t4013/diff.noellipses-whatchanged_-SF_master +++ /dev/null @@ -1,9 +0,0 @@ -$ git whatchanged -SF master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40 cead32e M dir/sub -$ diff --git a/t/t4013/diff.noellipses-whatchanged_main b/t/t4013/diff.noellipses-whatchanged_main new file mode 100644 index 0000000000..c48d2851aa --- /dev/null +++ b/t/t4013/diff.noellipses-whatchanged_main @@ -0,0 +1,32 @@ +$ git whatchanged main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +:100644 100644 35d242b 7289e35 M dir/sub +:100644 100644 01e79c3 f4615da M file0 +:000000 100644 0000000 7289e35 A file3 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40 cead32e M dir/sub +:000000 100644 0000000 b1e6722 A file1 + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +:100644 100644 35d242b 8422d40 M dir/sub +:100644 100644 01e79c3 b414108 M file0 +:100644 000000 01e79c3 0000000 D file2 +$ diff --git a/t/t4013/diff.noellipses-whatchanged_master b/t/t4013/diff.noellipses-whatchanged_master deleted file mode 100644 index 55e500f2ed..0000000000 --- a/t/t4013/diff.noellipses-whatchanged_master +++ /dev/null @@ -1,32 +0,0 @@ -$ git whatchanged master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -:100644 100644 35d242b 7289e35 M dir/sub -:100644 100644 01e79c3 f4615da M file0 -:000000 100644 0000000 7289e35 A file3 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40 cead32e M dir/sub -:000000 100644 0000000 b1e6722 A file1 - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -:100644 100644 35d242b 8422d40 M dir/sub -:100644 100644 01e79c3 b414108 M file0 -:100644 000000 01e79c3 0000000 D file2 -$ diff --git a/t/t4013/diff.show_--first-parent_main b/t/t4013/diff.show_--first-parent_main new file mode 100644 index 0000000000..480502d65c --- /dev/null +++ b/t/t4013/diff.show_--first-parent_main @@ -0,0 +1,30 @@ +$ git show --first-parent main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C +$ diff --git a/t/t4013/diff.show_--first-parent_master b/t/t4013/diff.show_--first-parent_master deleted file mode 100644 index 3dcbe473a0..0000000000 --- a/t/t4013/diff.show_--first-parent_master +++ /dev/null @@ -1,30 +0,0 @@ -$ git show --first-parent master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C -$ diff --git a/t/t4013/diff.show_-c_main b/t/t4013/diff.show_-c_main new file mode 100644 index 0000000000..74ef8bc96b --- /dev/null +++ b/t/t4013/diff.show_-c_main @@ -0,0 +1,36 @@ +$ git show -c main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --combined dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --combined file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.show_-c_master b/t/t4013/diff.show_-c_master deleted file mode 100644 index 81aba8da96..0000000000 --- a/t/t4013/diff.show_-c_master +++ /dev/null @@ -1,36 +0,0 @@ -$ git show -c master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --combined dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --combined file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.show_-m_main b/t/t4013/diff.show_-m_main new file mode 100644 index 0000000000..8fd56736d9 --- /dev/null +++ b/t/t4013/diff.show_-m_main @@ -0,0 +1,93 @@ +$ git show -m main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index cead32e..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -4,3 +4,5 @@ C + D + E + F ++1 ++2 +diff --git a/file0 b/file0 +index b414108..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -4,3 +4,6 @@ + 4 + 5 + 6 ++A ++B ++C + +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --git a/dir/sub b/dir/sub +index 7289e35..992913c 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,4 +1,8 @@ + A + B ++C ++D ++E ++F + 1 + 2 +diff --git a/file0 b/file0 +index f4615da..10a8a9f 100644 +--- a/file0 ++++ b/file0 +@@ -1,6 +1,9 @@ + 1 + 2 + 3 ++4 ++5 ++6 + A + B + C +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +diff --git a/file3 b/file3 +deleted file mode 100644 +index 7289e35..0000000 +--- a/file3 ++++ /dev/null +@@ -1,4 +0,0 @@ +-A +-B +-1 +-2 +$ diff --git a/t/t4013/diff.show_-m_master b/t/t4013/diff.show_-m_master deleted file mode 100644 index 4ea2ee453d..0000000000 --- a/t/t4013/diff.show_-m_master +++ /dev/null @@ -1,93 +0,0 @@ -$ git show -m master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index cead32e..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -4,3 +4,5 @@ C - D - E - F -+1 -+2 -diff --git a/file0 b/file0 -index b414108..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -4,3 +4,6 @@ - 4 - 5 - 6 -+A -+B -+C - -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a) -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --git a/dir/sub b/dir/sub -index 7289e35..992913c 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,4 +1,8 @@ - A - B -+C -+D -+E -+F - 1 - 2 -diff --git a/file0 b/file0 -index f4615da..10a8a9f 100644 ---- a/file0 -+++ b/file0 -@@ -1,6 +1,9 @@ - 1 - 2 - 3 -+4 -+5 -+6 - A - B - C -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -diff --git a/file3 b/file3 -deleted file mode 100644 -index 7289e35..0000000 ---- a/file3 -+++ /dev/null -@@ -1,4 +0,0 @@ --A --B --1 --2 -$ diff --git a/t/t4013/diff.show_main b/t/t4013/diff.show_main new file mode 100644 index 0000000000..630b52a95e --- /dev/null +++ b/t/t4013/diff.show_main @@ -0,0 +1,36 @@ +$ git show main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C +$ diff --git a/t/t4013/diff.show_master b/t/t4013/diff.show_master deleted file mode 100644 index fb08ce0e46..0000000000 --- a/t/t4013/diff.show_master +++ /dev/null @@ -1,36 +0,0 @@ -$ git show master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C -$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_--summary_main_--_dir_ b/t/t4013/diff.whatchanged_--patch-with-stat_--summary_main_--_dir_ new file mode 100644 index 0000000000..ce0754d556 --- /dev/null +++ b/t/t4013/diff.whatchanged_--patch-with-stat_--summary_main_--_dir_ @@ -0,0 +1,61 @@ +$ git whatchanged --patch-with-stat --summary main -- dir/ +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_ b/t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_ deleted file mode 100644 index c8b6af2f43..0000000000 --- a/t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_ +++ /dev/null @@ -1,61 +0,0 @@ -$ git whatchanged --patch-with-stat --summary master -- dir/ -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_main b/t/t4013/diff.whatchanged_--patch-with-stat_main new file mode 100644 index 0000000000..aabccf39a5 --- /dev/null +++ b/t/t4013/diff.whatchanged_--patch-with-stat_main @@ -0,0 +1,116 @@ +$ git whatchanged --patch-with-stat main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_main_--_dir_ b/t/t4013/diff.whatchanged_--patch-with-stat_main_--_dir_ new file mode 100644 index 0000000000..c05a0e8149 --- /dev/null +++ b/t/t4013/diff.whatchanged_--patch-with-stat_main_--_dir_ @@ -0,0 +1,61 @@ +$ git whatchanged --patch-with-stat main -- dir/ +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_master b/t/t4013/diff.whatchanged_--patch-with-stat_master deleted file mode 100644 index 1ac431ba92..0000000000 --- a/t/t4013/diff.whatchanged_--patch-with-stat_master +++ /dev/null @@ -1,116 +0,0 @@ -$ git whatchanged --patch-with-stat master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -$ diff --git a/t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_ b/t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_ deleted file mode 100644 index b30c28588f..0000000000 --- a/t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_ +++ /dev/null @@ -1,61 +0,0 @@ -$ git whatchanged --patch-with-stat master -- dir/ -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -$ diff --git a/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_main b/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..1f74b1b548 --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_main @@ -0,0 +1,199 @@ +$ git whatchanged --root --cc --patch-with-stat --summary main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --cc dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --cc file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master b/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master deleted file mode 100644 index 30aae7817b..0000000000 --- a/t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master +++ /dev/null @@ -1,199 +0,0 @@ -$ git whatchanged --root --cc --patch-with-stat --summary master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --cc dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --cc file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_main b/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..80d9812151 --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_main @@ -0,0 +1,160 @@ +$ git whatchanged --root --patch-with-stat --summary main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master b/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master deleted file mode 100644 index db90e51525..0000000000 --- a/t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master +++ /dev/null @@ -1,160 +0,0 @@ -$ git whatchanged --root --patch-with-stat --summary master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.whatchanged_--root_--patch-with-stat_main b/t/t4013/diff.whatchanged_--root_--patch-with-stat_main new file mode 100644 index 0000000000..c0b9082a2c --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_--patch-with-stat_main @@ -0,0 +1,154 @@ +$ git whatchanged --root --patch-with-stat main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.whatchanged_--root_--patch-with-stat_master b/t/t4013/diff.whatchanged_--root_--patch-with-stat_master deleted file mode 100644 index 9a6cc92ce7..0000000000 --- a/t/t4013/diff.whatchanged_--root_--patch-with-stat_master +++ /dev/null @@ -1,154 +0,0 @@ -$ git whatchanged --root --patch-with-stat master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_main b/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_main new file mode 100644 index 0000000000..0002c6912e --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_main @@ -0,0 +1,199 @@ +$ git whatchanged --root -c --patch-with-stat --summary main +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 +Merge: 9a6d494 c7a2ab9 +Author: A U Thor +Date: Mon Jun 26 00:04:00 2006 +0000 + + Merge branch 'side' + + dir/sub | 2 ++ + file0 | 3 +++ + 2 files changed, 5 insertions(+) + +diff --combined dir/sub +index cead32e,7289e35..992913c +--- a/dir/sub ++++ b/dir/sub +@@@ -1,6 -1,4 +1,8 @@@ + A + B + +C + +D + +E + +F ++ 1 ++ 2 +diff --combined file0 +index b414108,f4615da..10a8a9f +--- a/file0 ++++ b/file0 +@@@ -1,6 -1,6 +1,9 @@@ + 1 + 2 + 3 + +4 + +5 + +6 ++ A ++ B ++ C + +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side +--- + dir/sub | 2 ++ + file0 | 3 +++ + file3 | 4 ++++ + 3 files changed, 9 insertions(+) + create mode 100644 file3 + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third +--- + dir/sub | 2 ++ + file1 | 3 +++ + 2 files changed, 5 insertions(+) + create mode 100644 file1 + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 --- + 3 files changed, 5 insertions(+), 3 deletions(-) + delete mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial +--- + dir/sub | 2 ++ + file0 | 3 +++ + file2 | 3 +++ + 3 files changed, 8 insertions(+) + create mode 100644 dir/sub + create mode 100644 file0 + create mode 100644 file2 + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master b/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master deleted file mode 100644 index d1d32bd34c..0000000000 --- a/t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master +++ /dev/null @@ -1,199 +0,0 @@ -$ git whatchanged --root -c --patch-with-stat --summary master -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 -Merge: 9a6d494 c7a2ab9 -Author: A U Thor -Date: Mon Jun 26 00:04:00 2006 +0000 - - Merge branch 'side' - - dir/sub | 2 ++ - file0 | 3 +++ - 2 files changed, 5 insertions(+) - -diff --combined dir/sub -index cead32e,7289e35..992913c ---- a/dir/sub -+++ b/dir/sub -@@@ -1,6 -1,4 +1,8 @@@ - A - B - +C - +D - +E - +F -+ 1 -+ 2 -diff --combined file0 -index b414108,f4615da..10a8a9f ---- a/file0 -+++ b/file0 -@@@ -1,6 -1,6 +1,9 @@@ - 1 - 2 - 3 - +4 - +5 - +6 -+ A -+ B -+ C - -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side ---- - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ - 3 files changed, 9 insertions(+) - create mode 100644 file3 - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third ---- - dir/sub | 2 ++ - file1 | 3 +++ - 2 files changed, 5 insertions(+) - create mode 100644 file1 - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- - 3 files changed, 5 insertions(+), 3 deletions(-) - delete mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial ---- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ - 3 files changed, 8 insertions(+) - create mode 100644 dir/sub - create mode 100644 file0 - create mode 100644 file2 - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.whatchanged_--root_-p_main b/t/t4013/diff.whatchanged_--root_-p_main new file mode 100644 index 0000000000..39f3e2be74 --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_-p_main @@ -0,0 +1,135 @@ +$ git whatchanged --root -p main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial + +diff --git a/dir/sub b/dir/sub +new file mode 100644 +index 0000000..35d242b +--- /dev/null ++++ b/dir/sub +@@ -0,0 +1,2 @@ ++A ++B +diff --git a/file0 b/file0 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file0 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..01e79c3 +--- /dev/null ++++ b/file2 +@@ -0,0 +1,3 @@ ++1 ++2 ++3 +$ diff --git a/t/t4013/diff.whatchanged_--root_-p_master b/t/t4013/diff.whatchanged_--root_-p_master deleted file mode 100644 index ebf1f0661e..0000000000 --- a/t/t4013/diff.whatchanged_--root_-p_master +++ /dev/null @@ -1,135 +0,0 @@ -$ git whatchanged --root -p master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial - -diff --git a/dir/sub b/dir/sub -new file mode 100644 -index 0000000..35d242b ---- /dev/null -+++ b/dir/sub -@@ -0,0 +1,2 @@ -+A -+B -diff --git a/file0 b/file0 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file0 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -diff --git a/file2 b/file2 -new file mode 100644 -index 0000000..01e79c3 ---- /dev/null -+++ b/file2 -@@ -0,0 +1,3 @@ -+1 -+2 -+3 -$ diff --git a/t/t4013/diff.whatchanged_--root_main b/t/t4013/diff.whatchanged_--root_main new file mode 100644 index 0000000000..36f4d6697f --- /dev/null +++ b/t/t4013/diff.whatchanged_--root_main @@ -0,0 +1,42 @@ +$ git whatchanged --root main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +:100644 100644 35d242b... 7289e35... M dir/sub +:100644 100644 01e79c3... f4615da... M file0 +:000000 100644 0000000... 7289e35... A file3 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40... cead32e... M dir/sub +:000000 100644 0000000... b1e6722... A file1 + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +:100644 100644 35d242b... 8422d40... M dir/sub +:100644 100644 01e79c3... b414108... M file0 +:100644 000000 01e79c3... 0000000... D file2 + +commit 444ac553ac7612cc88969031b02b3767fb8a353a +Author: A U Thor +Date: Mon Jun 26 00:00:00 2006 +0000 + + Initial + +:000000 100644 0000000... 35d242b... A dir/sub +:000000 100644 0000000... 01e79c3... A file0 +:000000 100644 0000000... 01e79c3... A file2 +$ diff --git a/t/t4013/diff.whatchanged_--root_master b/t/t4013/diff.whatchanged_--root_master deleted file mode 100644 index a405cb6138..0000000000 --- a/t/t4013/diff.whatchanged_--root_master +++ /dev/null @@ -1,42 +0,0 @@ -$ git whatchanged --root master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -:100644 100644 35d242b... 7289e35... M dir/sub -:100644 100644 01e79c3... f4615da... M file0 -:000000 100644 0000000... 7289e35... A file3 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40... cead32e... M dir/sub -:000000 100644 0000000... b1e6722... A file1 - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -:100644 100644 35d242b... 8422d40... M dir/sub -:100644 100644 01e79c3... b414108... M file0 -:100644 000000 01e79c3... 0000000... D file2 - -commit 444ac553ac7612cc88969031b02b3767fb8a353a -Author: A U Thor -Date: Mon Jun 26 00:00:00 2006 +0000 - - Initial - -:000000 100644 0000000... 35d242b... A dir/sub -:000000 100644 0000000... 01e79c3... A file0 -:000000 100644 0000000... 01e79c3... A file2 -$ diff --git a/t/t4013/diff.whatchanged_-SF_-p_main b/t/t4013/diff.whatchanged_-SF_-p_main new file mode 100644 index 0000000000..0e2e67c0df --- /dev/null +++ b/t/t4013/diff.whatchanged_-SF_-p_main @@ -0,0 +1,18 @@ +$ git whatchanged -SF -p main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +$ diff --git a/t/t4013/diff.whatchanged_-SF_-p_master b/t/t4013/diff.whatchanged_-SF_-p_master deleted file mode 100644 index f39da84822..0000000000 --- a/t/t4013/diff.whatchanged_-SF_-p_master +++ /dev/null @@ -1,18 +0,0 @@ -$ git whatchanged -SF -p master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -$ diff --git a/t/t4013/diff.whatchanged_-SF_main b/t/t4013/diff.whatchanged_-SF_main new file mode 100644 index 0000000000..34c6bf6b95 --- /dev/null +++ b/t/t4013/diff.whatchanged_-SF_main @@ -0,0 +1,9 @@ +$ git whatchanged -SF main +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40... cead32e... M dir/sub +$ diff --git a/t/t4013/diff.whatchanged_-SF_master b/t/t4013/diff.whatchanged_-SF_master deleted file mode 100644 index 0499321d0e..0000000000 --- a/t/t4013/diff.whatchanged_-SF_master +++ /dev/null @@ -1,9 +0,0 @@ -$ git whatchanged -SF master -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40... cead32e... M dir/sub -$ diff --git a/t/t4013/diff.whatchanged_-p_main b/t/t4013/diff.whatchanged_-p_main new file mode 100644 index 0000000000..18f3bdeef4 --- /dev/null +++ b/t/t4013/diff.whatchanged_-p_main @@ -0,0 +1,102 @@ +$ git whatchanged -p main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +diff --git a/dir/sub b/dir/sub +index 35d242b..7289e35 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++1 ++2 +diff --git a/file0 b/file0 +index 01e79c3..f4615da 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++A ++B ++C +diff --git a/file3 b/file3 +new file mode 100644 +index 0000000..7289e35 +--- /dev/null ++++ b/file3 +@@ -0,0 +1,4 @@ ++A ++B ++1 ++2 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +diff --git a/dir/sub b/dir/sub +index 8422d40..cead32e 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -2,3 +2,5 @@ A + B + C + D ++E ++F +diff --git a/file1 b/file1 +new file mode 100644 +index 0000000..b1e6722 +--- /dev/null ++++ b/file1 +@@ -0,0 +1,3 @@ ++A ++B ++C + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +diff --git a/dir/sub b/dir/sub +index 35d242b..8422d40 100644 +--- a/dir/sub ++++ b/dir/sub +@@ -1,2 +1,4 @@ + A + B ++C ++D +diff --git a/file0 b/file0 +index 01e79c3..b414108 100644 +--- a/file0 ++++ b/file0 +@@ -1,3 +1,6 @@ + 1 + 2 + 3 ++4 ++5 ++6 +diff --git a/file2 b/file2 +deleted file mode 100644 +index 01e79c3..0000000 +--- a/file2 ++++ /dev/null +@@ -1,3 +0,0 @@ +-1 +-2 +-3 +$ diff --git a/t/t4013/diff.whatchanged_-p_master b/t/t4013/diff.whatchanged_-p_master deleted file mode 100644 index f18d43209c..0000000000 --- a/t/t4013/diff.whatchanged_-p_master +++ /dev/null @@ -1,102 +0,0 @@ -$ git whatchanged -p master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -diff --git a/dir/sub b/dir/sub -index 35d242b..7289e35 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+1 -+2 -diff --git a/file0 b/file0 -index 01e79c3..f4615da 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+A -+B -+C -diff --git a/file3 b/file3 -new file mode 100644 -index 0000000..7289e35 ---- /dev/null -+++ b/file3 -@@ -0,0 +1,4 @@ -+A -+B -+1 -+2 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -diff --git a/dir/sub b/dir/sub -index 8422d40..cead32e 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -2,3 +2,5 @@ A - B - C - D -+E -+F -diff --git a/file1 b/file1 -new file mode 100644 -index 0000000..b1e6722 ---- /dev/null -+++ b/file1 -@@ -0,0 +1,3 @@ -+A -+B -+C - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -diff --git a/dir/sub b/dir/sub -index 35d242b..8422d40 100644 ---- a/dir/sub -+++ b/dir/sub -@@ -1,2 +1,4 @@ - A - B -+C -+D -diff --git a/file0 b/file0 -index 01e79c3..b414108 100644 ---- a/file0 -+++ b/file0 -@@ -1,3 +1,6 @@ - 1 - 2 - 3 -+4 -+5 -+6 -diff --git a/file2 b/file2 -deleted file mode 100644 -index 01e79c3..0000000 ---- a/file2 -+++ /dev/null -@@ -1,3 +0,0 @@ --1 --2 --3 -$ diff --git a/t/t4013/diff.whatchanged_main b/t/t4013/diff.whatchanged_main new file mode 100644 index 0000000000..d6c83ed8b0 --- /dev/null +++ b/t/t4013/diff.whatchanged_main @@ -0,0 +1,32 @@ +$ git whatchanged main +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a +Author: A U Thor +Date: Mon Jun 26 00:03:00 2006 +0000 + + Side + +:100644 100644 35d242b... 7289e35... M dir/sub +:100644 100644 01e79c3... f4615da... M file0 +:000000 100644 0000000... 7289e35... A file3 + +commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 +Author: A U Thor +Date: Mon Jun 26 00:02:00 2006 +0000 + + Third + +:100644 100644 8422d40... cead32e... M dir/sub +:000000 100644 0000000... b1e6722... A file1 + +commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 +Author: A U Thor +Date: Mon Jun 26 00:01:00 2006 +0000 + + Second + + This is the second commit. + +:100644 100644 35d242b... 8422d40... M dir/sub +:100644 100644 01e79c3... b414108... M file0 +:100644 000000 01e79c3... 0000000... D file2 +$ diff --git a/t/t4013/diff.whatchanged_master b/t/t4013/diff.whatchanged_master deleted file mode 100644 index cd3bcc2c72..0000000000 --- a/t/t4013/diff.whatchanged_master +++ /dev/null @@ -1,32 +0,0 @@ -$ git whatchanged master -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a -Author: A U Thor -Date: Mon Jun 26 00:03:00 2006 +0000 - - Side - -:100644 100644 35d242b... 7289e35... M dir/sub -:100644 100644 01e79c3... f4615da... M file0 -:000000 100644 0000000... 7289e35... A file3 - -commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 -Author: A U Thor -Date: Mon Jun 26 00:02:00 2006 +0000 - - Third - -:100644 100644 8422d40... cead32e... M dir/sub -:000000 100644 0000000... b1e6722... A file1 - -commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 -Author: A U Thor -Date: Mon Jun 26 00:01:00 2006 +0000 - - Second - - This is the second commit. - -:100644 100644 35d242b... 8422d40... M dir/sub -:100644 100644 01e79c3... b414108... M file0 -:100644 000000 01e79c3... 0000000... D file2 -$ -- cgit v1.3