From: Ralph Maalouf <ralph.maalouf@caretrx.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "'git@vger.kernel.org'" <git@vger.kernel.org>
Subject: RE: 'git show -c' omits hunk even though file was modified from all parents
Date: Mon, 29 Jul 2019 22:26:39 +0000 [thread overview]
Message-ID: <MN2PR13MB2607F98BF473C36A0C8F17ECEADD0@MN2PR13MB2607.namprd13.prod.outlook.com> (raw)
In-Reply-To: <xmqqsgqotsyi.fsf@gitster-ct.c.googlers.com>
Ahh that clears it up for me. I incorrectly assumed that at minimum that each "<<<<<<HEAD" represented a hunk..
I searched for the definition of hunk in gitglossary but couldn't find it.
Thanks for the clarification!
Ralph
-----Original Message-----
From: Junio C Hamano <gitster@pobox.com>
Sent: Monday, July 29, 2019 5:46 PM
To: Ralph Maalouf <ralph.maalouf@caretrx.com>
Cc: 'git@vger.kernel.org' <git@vger.kernel.org>
Subject: Re: 'git show -c' omits hunk even though file was modified from all parents
Ralph Maalouf <ralph.maalouf@caretrx.com> writes:
> "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).
prev parent reply other threads:[~2019-07-29 22:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-29 18:20 'git show -c' omits hunk even though file was modified from all parents Ralph Maalouf
2019-07-29 18:58 ` Junio C Hamano
2019-07-29 19:52 ` Ralph Maalouf
2019-07-29 21:46 ` Junio C Hamano
2019-07-29 22:26 ` Ralph Maalouf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MN2PR13MB2607F98BF473C36A0C8F17ECEADD0@MN2PR13MB2607.namprd13.prod.outlook.com \
--to=ralph.maalouf@caretrx.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).