From: Junio C Hamano Date: Tue, 23 Jan 2024 18:49:10 GMT Subject: Re: [PATCH 4/4] cherry-pick: Add `--empty` for more robust redundant commit handling Message-ID: In-Reply-To: Junio C Hamano writes: > I got curious and took a look at files that has hits with "lines > that end with SP or HT": > > $ git grep -l -e '[ ]$' Another more interest way to check is to do this: $ git diff --check $(git hash-object --stdin -t tree 8 ----------- >8 ----------- >8 ----------- >8 ------ Subject: [PATCH] docs: a few whitespace fixes Some documentation files have 8-space indented lines where other indented lines in the same list use a single HT to indent. As Documentation/.gitattributes says *.txt files use the default whitespace rules, let's fix some of them as a practice. Note that git-add documentation has other instances of space indented lines, but they are samples of manually aligned output of the "git add -i" command and it would be better to keep them as-is. Which in turn may mean we may want to loosen the whitespace rules for some parts of the documentation files, but we currently do not have such a feature. The attribute based whitespace rules apply to the whole file. Signed-off-by: Junio C Hamano --- Documentation/diff-format.txt | 8 ++++---- Documentation/git-add.txt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git c/Documentation/diff-format.txt w/Documentation/diff-format.txt index a3ae8747a2..bcaf9ca608 100644 --- c/Documentation/diff-format.txt +++ w/Documentation/diff-format.txt @@ -8,16 +8,16 @@ These commands all compare two sets of things; what is compared differs: git-diff-index :: - compares the and the files on the filesystem. + compares the and the files on the filesystem. git-diff-index --cached :: - compares the and the index. + compares the and the index. git-diff-tree [-r] [...]:: - compares the trees named by the two arguments. + compares the trees named by the two arguments. git-diff-files [...]:: - compares the index and the files on the filesystem. + compares the index and the files on the filesystem. The "git-diff-tree" command begins its output by printing the hash of what is being compared. After that, all the commands print one output diff --git c/Documentation/git-add.txt w/Documentation/git-add.txt index ed44c1cb31..e1a5c27acd 100644 --- c/Documentation/git-add.txt +++ w/Documentation/git-add.txt @@ -73,7 +73,7 @@ in linkgit:gitglossary[7]. -v:: --verbose:: - Be verbose. + Be verbose. -f:: --force::