diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-25 16:43:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-25 16:43:30 -0800 |
commit | 845d6030f81da3bb43bd24a78ef8c441a441c5d5 (patch) | |
tree | 8f53740bbf5e31f6a002bc6166c897417e58696e /builtin/diff-index.c | |
parent | 3da165ca289efd84ed648a4b87b7d9ed675937c2 (diff) | |
parent | 1eb4136ac2a24764257567b930535fcece01719f (diff) | |
download | git-845d6030f81da3bb43bd24a78ef8c441a441c5d5.tar.gz |
Merge branch 'jc/diffcore-rotate'
"git {diff,log} --{skip,rotate}-to=<path>" allows the user to
discard diff output for early paths or move them to the end of the
output.
* jc/diffcore-rotate:
diff: --{rotate,skip}-to=<path>
Diffstat (limited to 'builtin/diff-index.c')
-rw-r--r-- | builtin/diff-index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/diff-index.c b/builtin/diff-index.c index c33d7af478..176fe7ff2b 100644 --- a/builtin/diff-index.c +++ b/builtin/diff-index.c @@ -41,6 +41,8 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix) if (!rev.diffopt.output_format) rev.diffopt.output_format = DIFF_FORMAT_RAW; + rev.diffopt.rotate_to_strict = 1; + /* * Make sure there is one revision (i.e. pending object), * and there is no revision filtering parameters. |