|
1 | 1 | The output format from "git-diff-index", "git-diff-tree" and |
2 | 2 | "git-diff-files" are very similar. |
3 | 3 |
|
4 | | -These commands all compare two sets of things; what are |
5 | | -compared are different: |
| 4 | +These commands all compare two sets of things; what is |
| 5 | +compared differs: |
6 | 6 |
|
7 | 7 | git-diff-index <tree-ish>:: |
8 | 8 | compares the <tree-ish> and the files on the filesystem. |
@@ -46,7 +46,7 @@ That is, from the left to the right: |
46 | 46 | . path for "dst"; only exists for C or R. |
47 | 47 | . an LF or a NUL when '-z' option is used, to terminate the record. |
48 | 48 |
|
49 | | -<sha1> is shown as all 0's if new is a file on the filesystem |
| 49 | +<sha1> is shown as all 0's if a file is new on the filesystem |
50 | 50 | and it is out of sync with the cache. |
51 | 51 |
|
52 | 52 | Example: |
@@ -91,7 +91,7 @@ For a path that is added, removed, or modified, |
91 | 91 | where: |
92 | 92 |
|
93 | 93 | <old|new>-file:: are files GIT_EXTERNAL_DIFF can use to read the |
94 | | - contents of <old|ne>, |
| 94 | + contents of <old|new>, |
95 | 95 | <old|new>-hex:: are the 40-hexdigit SHA1 hashes, |
96 | 96 | <old|new>-mode:: are the octal representation of the file modes. |
97 | 97 |
|
@@ -121,12 +121,11 @@ The `a/` and `b/` filenames are the same unless rename/copy is |
121 | 121 | involved. Especially, even for a creation or a deletion, |
122 | 122 | `/dev/null` is _not_ used in place of `a/` or `b/` filenames. |
123 | 123 | + |
124 | | -When rename/copy is involved, `file1` and `file2` shows the |
| 124 | +When rename/copy is involved, `file1` and `file2` show the |
125 | 125 | name of the source file of the rename/copy and the name of |
126 | 126 | the file that rename/copy produces, respectively. |
127 | 127 |
|
128 | | -2. It is followed by extended header lines that are one or |
129 | | - more of: |
| 128 | +2. It is followed by one or more extended header lines: |
130 | 129 |
|
131 | 130 | old mode <mode> |
132 | 131 | new mode <mode> |
|
0 commit comments