diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-11-18 15:50:16 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-11-18 15:50:16 -0800 |
| commit | e6cb314c087661a535b8873502b6d40cef1bbd57 (patch) | |
| tree | b097ca74690e1d6bf8a95b5162eb95ec931ad5ed /builtin-diff-index.c | |
| parent | 41d8a5f0f7db6e1d92f925234eb8c55d2d34a5af (diff) | |
| parent | d054680c7d245b71ebba0dd030fd13dce213559a (diff) | |
| download | git-e6cb314c087661a535b8873502b6d40cef1bbd57.tar.gz | |
Merge branch 'ph/diffopts'
* ph/diffopts:
Reorder diff_opt_parse options more logically per topics.
Make the diff_options bitfields be an unsigned with explicit masks.
Use OPT_BIT in builtin-pack-refs
Use OPT_BIT in builtin-for-each-ref
Use OPT_SET_INT and OPT_BIT in builtin-branch
parse-options new features.
Diffstat (limited to 'builtin-diff-index.c')
| -rw-r--r-- | builtin-diff-index.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-diff-index.c b/builtin-diff-index.c index 81e7167438..556c506bfa 100644 --- a/builtin-diff-index.c +++ b/builtin-diff-index.c @@ -44,5 +44,7 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix) return -1; } result = run_diff_index(&rev, cached); - return rev.diffopt.exit_with_status ? rev.diffopt.has_changes: result; + if (DIFF_OPT_TST(&rev.diffopt, EXIT_WITH_STATUS)) + return DIFF_OPT_TST(&rev.diffopt, HAS_CHANGES) != 0; + return result; } |
