-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dd/diff-customize-index-line-abbrev'
The output from the "diff" family of the commands had abbreviated object names of blobs involved in the patch, but its length was not affected by the --abbrev option. Now it is. * dd/diff-customize-index-line-abbrev: diff: index-line: respect --abbrev in object's name t4013: improve diff-post-processor logic
- Loading branch information
Showing
6 changed files
with
138 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$ git diff-tree --root -p --abbrev=10 initial | ||
444ac553ac7612cc88969031b02b3767fb8a353a | ||
diff --git a/dir/sub b/dir/sub | ||
new file mode 100644 | ||
index 0000000000..35d242ba79 | ||
--- /dev/null | ||
+++ b/dir/sub | ||
@@ -0,0 +1,2 @@ | ||
+A | ||
+B | ||
diff --git a/file0 b/file0 | ||
new file mode 100644 | ||
index 0000000000..01e79c32a8 | ||
--- /dev/null | ||
+++ b/file0 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
diff --git a/file2 b/file2 | ||
new file mode 100644 | ||
index 0000000000..01e79c32a8 | ||
--- /dev/null | ||
+++ b/file2 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
$ |
29 changes: 29 additions & 0 deletions
29
t/t4013/diff.diff-tree_--root_-p_--full-index_--abbrev=10_initial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$ git diff-tree --root -p --full-index --abbrev=10 initial | ||
444ac553ac7612cc88969031b02b3767fb8a353a | ||
diff --git a/dir/sub b/dir/sub | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..35d242ba79ae89ac695e26b3d4c27a8e6f028f9e | ||
--- /dev/null | ||
+++ b/dir/sub | ||
@@ -0,0 +1,2 @@ | ||
+A | ||
+B | ||
diff --git a/file0 b/file0 | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..01e79c32a8c99c557f0757da7cb6d65b3414466d | ||
--- /dev/null | ||
+++ b/file0 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
diff --git a/file2 b/file2 | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..01e79c32a8c99c557f0757da7cb6d65b3414466d | ||
--- /dev/null | ||
+++ b/file2 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$ git diff-tree --root -p --full-index initial | ||
444ac553ac7612cc88969031b02b3767fb8a353a | ||
diff --git a/dir/sub b/dir/sub | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..35d242ba79ae89ac695e26b3d4c27a8e6f028f9e | ||
--- /dev/null | ||
+++ b/dir/sub | ||
@@ -0,0 +1,2 @@ | ||
+A | ||
+B | ||
diff --git a/file0 b/file0 | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..01e79c32a8c99c557f0757da7cb6d65b3414466d | ||
--- /dev/null | ||
+++ b/file0 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
diff --git a/file2 b/file2 | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..01e79c32a8c99c557f0757da7cb6d65b3414466d | ||
--- /dev/null | ||
+++ b/file2 | ||
@@ -0,0 +1,3 @@ | ||
+1 | ||
+2 | ||
+3 | ||
$ |