diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2007-03-14 01:17:04 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-14 16:21:19 -0700 |
commit | 41bbf9d58575095234c64df979ee884334469758 (patch) | |
tree | 916fb0b719369166e3cea928ec4831482ad4e9fa /Documentation/diff-options.txt | |
parent | Merge GIT 1.5.0.4 (diff) | |
download | tgif-41bbf9d58575095234c64df979ee884334469758.tar.xz |
Allow git-diff exit with codes similar to diff(1)
This introduces a new command-line option: --exit-code. The diff
programs will return 1 for differences, return 0 for equality, and
something else for errors.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r-- | Documentation/diff-options.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index d8696b7b36..77a3f78dd7 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -159,5 +159,10 @@ -w:: Shorthand for "--ignore-all-space". +--exit-code:: + Make the program exit with codes similar to diff(1). + That is, it exits with 1 if there were differences and + 0 means no differences. + For more detailed explanation on these common options, see also link:diffcore.html[diffcore documentation]. |