From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>,
Johannes Sixt <j.sixt@viscovery.net>
Subject: Re: cherry-pick applies some other changes than the specified one?
Date: Tue, 22 Mar 2011 00:27:43 -0500 [thread overview]
Message-ID: <20110322052742.GA7637@elie> (raw)
In-Reply-To: <7vsjugnqig.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> This just leaves the details of what -c/--cc are about to the combined
> diff format section in diff-generate-patch.txt, which I updated in the
> separate patch.
Thanks; this looks pretty good. A few nitpicks:
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -24,6 +24,37 @@ ifndef::git-format-patch[]
> --patch::
> Generate patch (see section on generating patches).
> {git-diff? This is the default.}
> +
> +-1 --base::
> +-2 --ours::
> +-3 --theirs::
> +-0::
> + These make sense only when comparing the index and the working
> + tree (i.e. `git diff-files` or `git diff <path>...`) and compares
> + against the "base" version, "our branch" or "their
> + branch" respectively. With these options, diffs for
> + merged entries are not shown.
> ++
> +The default is to diff against our branch (-2) and the
> +cleanly resolved paths. The option -0 can be given to
> +omit diff output for unmerged entries and just show "Unmerged".
I am not sure what this comment about the default means. Isn't the
default to use --cc?
> +
> +-c::
> +--cc::
> + Produce "combined diff" (and "dense combined diff" showing how the
> + result is different compared to more than one original.
Missing an article after "Produce" (produce a combined diff) and a
closing parenthesis after "dense combined diff", I think.
More importantly, it might be nice to say
See the section "diff format for merges" of
linkgit:git-diff[1] for details.
next prev parent reply other threads:[~2011-03-22 5:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 9:27 cherry-pick applies some other changes than the specified one? Piotr Krukowiecki
2011-03-21 16:09 ` Junio C Hamano
2011-03-21 16:41 ` Johannes Sixt
2011-03-21 18:12 ` Piotr Krukowiecki
2011-03-21 19:47 ` Junio C Hamano
2011-03-21 20:06 ` Piotr Krukowiecki
2011-03-21 19:58 ` Jonathan Nieder
2011-03-21 20:07 ` Piotr Krukowiecki
2011-03-21 20:21 ` Junio C Hamano
2011-03-21 20:54 ` Junio C Hamano
2011-03-22 5:27 ` Jonathan Nieder [this message]
2011-03-22 6:37 ` Junio C Hamano
2011-03-22 8:04 ` Piotr Krukowiecki
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110322052742.GA7637@elie \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j.sixt@viscovery.net \
--cc=piotr.krukowiecki@gmail.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.