Git development
 help / color / mirror / Atom feed
* [PATCH] Correct documentation wording for diff options -S and --pickaxe-all
@ 2008-08-31 23:03 Heikki Orsila
  2008-08-31 23:21 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Heikki Orsila @ 2008-08-31 23:03 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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.
 
 --pickaxe-regex::
 	Make the <string> not a plain string but an extended POSIX
-- 
1.6.0.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Correct documentation wording for diff options -S and --pickaxe-all
  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
  2008-08-31 23:59   ` Heikki Orsila
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2008-08-31 23:21 UTC (permalink / raw)
  To: Heikki Orsila; +Cc: git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Correct documentation wording for diff options -S and --pickaxe-all
  2008-08-31 23:21 ` Junio C Hamano
@ 2008-08-31 23:59   ` Heikki Orsila
  0 siblings, 0 replies; 3+ messages in thread
From: Heikki Orsila @ 2008-08-31 23:59 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Heikki Orsila, git

On Sun, Aug 31, 2008 at 04:21:43PM -0700, Junio C Hamano wrote:
> 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.

Perhaps like this:

-S:
"Look for differences that change the number of <string> matches in a file.
In other words, moving the <string> inside a file does not imply a 
match, but adding or removing <string> will."

-- 
Heikki Orsila
heikki.orsila@iki.fi
http://www.iki.fi/shd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-01  0:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-08-31 23:59   ` Heikki Orsila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox