Re: 'git show -c' omits hunk even though file was modified from all parents
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 29, 2019, 21:46 UTC
- Message-ID
- <xmqqsgqotsyi.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <MN2PR13MB2607F47AC76601FC709A67A8EADD0@MN2PR13MB2607.namprd13.prod.outlook.com>
Ralph Maalouf <ralph.maalouf@caretrx.com> writes:
Show 19 quoted lines
> "We do not show hunks that match one of the parents ". But in case > 1 the second hunk matches one of the parents yet `git show -c` > still outputs it. > > diff --combined test1 > index 02ef2b0,ffc05f2..59d575d > --- a/test1 > +++ b/test1 > @@@ -1,8 -1,8 +1,9 @@@ > One > +Two > + Four > Three > > > Seven > -Ten > +Eight > Nine
The above is a single hunk (whose definition is the group of lines delimited by @@@...@@@ lines).