Skip to content

Commit

Permalink
Document --check option to git diff.
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Lear <rael@zopyra.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Bill Lear authored and Junio C Hamano committed Jan 27, 2007
1 parent d67778e commit 16507fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Documentation/SubmittingPatches
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ probably need to split up your commit to finer grained pieces.

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.
Expand Down
4 changes: 4 additions & 0 deletions Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 16507fc

Please sign in to comment.