Browse Source
"git log" learned a new "--diff-merges=<how>" option. * so/log-diff-merge: (32 commits) t4013: add tests for --diff-merges=first-parent doc/git-show: include --diff-merges description doc/rev-list-options: document --first-parent changes merges format doc/diff-generate-patch: mention new --diff-merges option doc/git-log: describe new --diff-merges options diff-merges: add '--diff-merges=1' as synonym for 'first-parent' diff-merges: add old mnemonic counterparts to --diff-merges diff-merges: let new options enable diff without -p diff-merges: do not imply -p for new options diff-merges: implement new values for --diff-merges diff-merges: make -m/-c/--cc explicitly mutually exclusive diff-merges: refactor opt settings into separate functions diff-merges: get rid of now empty diff_merges_init_revs() diff-merges: group diff-merge flags next to each other inside 'rev_info' diff-merges: split 'ignore_merges' field diff-merges: fix -m to properly override -c/--cc t4013: add tests for -m failing to override -c/--cc t4013: support test_expect_failure through ':failure' magic diff-merges: revise revs->diff flag handling diff-merges: handle imply -p on -c/--cc logic for log.c ...maint
![gitster@pobox.com](/assets/img/avatar_default.png)
21 changed files with 893 additions and 116 deletions
@ -0,0 +1,146 @@
@@ -0,0 +1,146 @@
|
||||
#include "diff-merges.h" |
||||
|
||||
#include "revision.h" |
||||
|
||||
static void suppress(struct rev_info *revs) |
||||
{ |
||||
revs->separate_merges = 0; |
||||
revs->first_parent_merges = 0; |
||||
revs->combine_merges = 0; |
||||
revs->dense_combined_merges = 0; |
||||
revs->combined_all_paths = 0; |
||||
revs->combined_imply_patch = 0; |
||||
revs->merges_need_diff = 0; |
||||
} |
||||
|
||||
static void set_separate(struct rev_info *revs) |
||||
{ |
||||
suppress(revs); |
||||
revs->separate_merges = 1; |
||||
} |
||||
|
||||
static void set_first_parent(struct rev_info *revs) |
||||
{ |
||||
set_separate(revs); |
||||
revs->first_parent_merges = 1; |
||||
} |
||||
|
||||
static void set_m(struct rev_info *revs) |
||||
{ |
||||
/* |
||||
* To "diff-index", "-m" means "match missing", and to the "log" |
||||
* family of commands, it means "show full diff for merges". Set |
||||
* both fields appropriately. |
||||
*/ |
||||
set_separate(revs); |
||||
revs->match_missing = 1; |
||||
} |
||||
|
||||
static void set_combined(struct rev_info *revs) |
||||
{ |
||||
suppress(revs); |
||||
revs->combine_merges = 1; |
||||
revs->dense_combined_merges = 0; |
||||
} |
||||
|
||||
static void set_dense_combined(struct rev_info *revs) |
||||
{ |
||||
suppress(revs); |
||||
revs->combine_merges = 1; |
||||
revs->dense_combined_merges = 1; |
||||
} |
||||
|
||||
static void set_diff_merges(struct rev_info *revs, const char *optarg) |
||||
{ |
||||
if (!strcmp(optarg, "off") || !strcmp(optarg, "none")) { |
||||
suppress(revs); |
||||
/* Return early to leave revs->merges_need_diff unset */ |
||||
return; |
||||
} |
||||
|
||||
if (!strcmp(optarg, "1") || !strcmp(optarg, "first-parent")) |
||||
set_first_parent(revs); |
||||
else if (!strcmp(optarg, "m") || !strcmp(optarg, "separate")) |
||||
set_separate(revs); |
||||
else if (!strcmp(optarg, "c") || !strcmp(optarg, "combined")) |
||||
set_combined(revs); |
||||
else if (!strcmp(optarg, "cc") || !strcmp(optarg, "dense-combined")) |
||||
set_dense_combined(revs); |
||||
else |
||||
die(_("unknown value for --diff-merges: %s"), optarg); |
||||
|
||||
/* The flag is cleared by set_xxx() functions, so don't move this up */ |
||||
revs->merges_need_diff = 1; |
||||
} |
||||
|
||||
/* |
||||
* Public functions. They are in the order they are called. |
||||
*/ |
||||
|
||||
int diff_merges_parse_opts(struct rev_info *revs, const char **argv) |
||||
{ |
||||
int argcount = 1; |
||||
const char *optarg; |
||||
const char *arg = argv[0]; |
||||
|
||||
if (!strcmp(arg, "-m")) { |
||||
set_m(revs); |
||||
} else if (!strcmp(arg, "-c")) { |
||||
set_combined(revs); |
||||
revs->combined_imply_patch = 1; |
||||
} else if (!strcmp(arg, "--cc")) { |
||||
set_dense_combined(revs); |
||||
revs->combined_imply_patch = 1; |
||||
} else if (!strcmp(arg, "--no-diff-merges")) { |
||||
suppress(revs); |
||||
} else if (!strcmp(arg, "--combined-all-paths")) { |
||||
revs->combined_all_paths = 1; |
||||
} else if ((argcount = parse_long_opt("diff-merges", argv, &optarg))) { |
||||
set_diff_merges(revs, optarg); |
||||
} else |
||||
return 0; |
||||
|
||||
revs->explicit_diff_merges = 1; |
||||
return argcount; |
||||
} |
||||
|
||||
void diff_merges_suppress(struct rev_info *revs) |
||||
{ |
||||
suppress(revs); |
||||
} |
||||
|
||||
void diff_merges_default_to_first_parent(struct rev_info *revs) |
||||
{ |
||||
if (!revs->explicit_diff_merges) |
||||
revs->separate_merges = 1; |
||||
if (revs->separate_merges) |
||||
revs->first_parent_merges = 1; |
||||
} |
||||
|
||||
void diff_merges_default_to_dense_combined(struct rev_info *revs) |
||||
{ |
||||
if (!revs->explicit_diff_merges) |
||||
set_dense_combined(revs); |
||||
} |
||||
|
||||
void diff_merges_set_dense_combined_if_unset(struct rev_info *revs) |
||||
{ |
||||
if (!revs->combine_merges) |
||||
set_dense_combined(revs); |
||||
} |
||||
|
||||
void diff_merges_setup_revs(struct rev_info *revs) |
||||
{ |
||||
if (revs->combine_merges == 0) |
||||
revs->dense_combined_merges = 0; |
||||
if (revs->separate_merges == 0) |
||||
revs->first_parent_merges = 0; |
||||
if (revs->combined_all_paths && !revs->combine_merges) |
||||
die("--combined-all-paths makes no sense without -c or --cc"); |
||||
if (revs->combined_imply_patch) |
||||
revs->diff = 1; |
||||
if (revs->combined_imply_patch || revs->merges_need_diff) { |
||||
if (!revs->diffopt.output_format) |
||||
revs->diffopt.output_format = DIFF_FORMAT_PATCH; |
||||
} |
||||
} |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
#ifndef DIFF_MERGES_H |
||||
#define DIFF_MERGES_H |
||||
|
||||
/* |
||||
* diff-merges - utility module to handle command-line options for |
||||
* selection of particular diff format of merge commits |
||||
* representation. |
||||
*/ |
||||
|
||||
struct rev_info; |
||||
|
||||
int diff_merges_parse_opts(struct rev_info *revs, const char **argv); |
||||
|
||||
void diff_merges_suppress(struct rev_info *revs); |
||||
|
||||
void diff_merges_default_to_first_parent(struct rev_info *revs); |
||||
|
||||
void diff_merges_default_to_dense_combined(struct rev_info *revs); |
||||
|
||||
void diff_merges_set_dense_combined_if_unset(struct rev_info *revs); |
||||
|
||||
void diff_merges_setup_revs(struct rev_info *revs); |
||||
|
||||
#endif |
@ -0,0 +1,200 @@
@@ -0,0 +1,200 @@
|
||||
$ git log --cc -m -p master |
||||
commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) |
||||
Merge: 9a6d494 c7a2ab9 |
||||
Author: A U Thor <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
Date: Mon Jun 26 00:00:00 2006 +0000 |
||||
|
||||
Initial |
||||
$ |
@ -0,0 +1,56 @@
@@ -0,0 +1,56 @@
|
||||
$ git log --diff-merges=first-parent master |
||||
commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 |
||||
Merge: 9a6d494 c7a2ab9 |
||||
Author: A U Thor <author@example.com> |
||||
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 <author@example.com> |
||||
Date: Mon Jun 26 00:03:00 2006 +0000 |
||||
|
||||
Side |
||||
|
||||
commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 |
||||
Author: A U Thor <author@example.com> |
||||
Date: Mon Jun 26 00:02:00 2006 +0000 |
||||
|
||||
Third |
||||
|
||||
commit 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 |
||||
Author: A U Thor <author@example.com> |
||||
Date: Mon Jun 26 00:01:00 2006 +0000 |
||||
|
||||
Second |
||||
|
||||
This is the second commit. |
||||
|
||||
commit 444ac553ac7612cc88969031b02b3767fb8a353a |
||||
Author: A U Thor <author@example.com> |
||||
Date: Mon Jun 26 00:00:00 2006 +0000 |
||||
|
||||
Initial |
||||
$ |
@ -0,0 +1,200 @@
@@ -0,0 +1,200 @@
|
||||
$ git log -c -m -p master |
||||
commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) |
||||
Merge: 9a6d494 c7a2ab9 |
||||
Author: A U Thor <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
Date: Mon Jun 26 00:00:00 2006 +0000 |
||||
|
||||
Initial |
||||
$ |
@ -0,0 +1,137 @@
@@ -0,0 +1,137 @@
|
||||
$ git log -p --diff-merges=first-parent master |
||||
commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 |
||||
Merge: 9a6d494 c7a2ab9 |
||||
Author: A U Thor <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
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 <author@example.com> |
||||
Date: Mon Jun 26 00:00:00 2006 +0000 |
||||
|
||||
Initial |
||||
$ |
Loading…
Reference in new issue