summaryrefslogtreecommitdiffstats
path: root/run-command.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-02-25 23:34:54 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-26 10:20:55 +0100
commit34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575 (patch)
tree7fa9bb068204e40a282a0b3b065069055b787cca /run-command.h
parentMerge branch 'master' into js/diff-ni (diff)
downloadgit-34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575.tar.xz
git-34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575.zip
diff --no-index: also imitate the exit status of diff(1)
diff sets the exit status to 0 when no changes were found, to 1 when changes were found, and 2 means error. We imitate this to be able to use "git diff" in the test scripts. (Actually, keeping in line with the rest of git, -1 is returned on error, which corresponds to an exit status 255). To find out if the diff is not empty, a member called "found_changes" was introduced in struct diff_options, which is set in builtin_diff() and fn_out_consume(). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'run-command.h')
0 files changed, 0 insertions, 0 deletions