threads / patch / 6564

patchDocument --check option to git diff.

Subject: [PATCH] Document --check option to git diff.

## tl;dr

3 messages between Jan 27, 2007 and Jan 27, 2007. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Bill Lear· Jan 27, 2007, 13:21 UTC · lore
Signed-off-by: Bill Lear <rael@zopyra.com>
---
 Documentation/SubmittingPatches |    3 ++-
 Documentation/diff-options.txt  |    4 ++++
 2 files changed, 6 insertions(+), 1 deletions(-)
Show changes to 2 files +6 −1

Documentation/SubmittingPatches, Documentation/diff-options.txt

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 41b76d8..ce85d06 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -23,7 +23,8 @@ probably need to split up your commit to
 
 Oh, another thing.  I am picky about whitespaces.  Make sure your
 changes do not trigger errors with the sample pre-commit hook shipped
-in templates/hooks--pre-commit.
+in templates/hooks--pre-commit.  To help ensure this does not happen,
+run git diff --check on your changes before you commit.
 
 
 (2) Generate your patch using git tools out of your commits.
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index da1cc60..019a39f 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -58,6 +58,10 @@
 	Turn off rename detection, even when the configuration
 	file gives the default to do so.
 
+--check::
+	Warn if changes introduce trailing whitespace
+	or an indent that uses a space before a tab.
+
 --full-index::
 	Instead of the first handful characters, show full
 	object name of pre- and post-image blob on the "index"
-- 
1.4.4.1
Bill Lear· Jan 27, 2007, 13:25 UTC · re: Bill Lear · lore

Re: [PATCH] Document --check option to git diff.

On Saturday, January 27, 2007 at 07:21:53 (-0600) Bill Lear writes:
Show 7 quoted lines
>
>Signed-off-by: Bill Lear <rael@zopyra.com>
>---
> Documentation/SubmittingPatches |    3 ++-
> Documentation/diff-options.txt  |    4 ++++
> 2 files changed, 6 insertions(+), 1 deletions(-)
>...

Note that this does not have the change to git-diff.txt. I felt adding the example of --check was unnecessary.

Bill

← back to recent threads