From: Junio C Hamano <gitster@pobox.com>
To: Heikki Orsila <heikki.orsila@iki.fi>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Correct documentation wording for diff options -S and --pickaxe-all
Date: Sun, 31 Aug 2008 16:21:43 -0700 [thread overview]
Message-ID: <7v63pg3h4o.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080831230304.GA30480@zakalwe.fi> (Heikki Orsila's message of "Mon, 1 Sep 2008 02:03:04 +0300")
Heikki Orsila <heikki.orsila@iki.fi> writes:
> Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
> ---
> Documentation/diff-options.txt | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index 1759386..062a8ae 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -160,12 +160,12 @@ endif::git-format-patch[]
> number.
>
> -S<string>::
> - Look for differences that contain the change in <string>.
> + Look for differences that contain <string> in the change.
>
> --pickaxe-all::
> When -S finds a change, show all the changes in that
> - changeset, not just the files that contain the change
> - in <string>.
> + changeset, not just the files that contain <string>
> + in the change.
Thanks, but if we are doing this, we should reword it to something less
misleading. The pickaxe search does not look for changes that contains
string in the sense people might expect (e.g. "diff -u0 | grep string").
The machinery looks at the old and new copy, and considers it a match if
they have different numbers of "string" in them.
So perhaps something like this
-S<string>::
Look for differences that changes the number of <string> in the
file.
--pickaxe-all::
When -S finds a change, show all the changes in that changeset,
not just the files for which the number of <string> in them
changes.
but I am bad at writing, so I'll ask others to come up with a better
wording.
next prev parent reply other threads:[~2008-08-31 23:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 23:03 [PATCH] Correct documentation wording for diff options -S and --pickaxe-all Heikki Orsila
2008-08-31 23:21 ` Junio C Hamano [this message]
2008-08-31 23:59 ` Heikki Orsila
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=7v63pg3h4o.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=heikki.orsila@iki.fi \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox