git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] diffcore-pickaxe doc: document -S and -G properly

From
Junio C Hamano <gitster@pobox.com>
Date
May 14, 2013, 17:41 UTC
Message-ID
<7vwqr1jw67.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1368540759-25598-1-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 8 quoted lines
>  -S<string>::
> -	Look for differences that introduce or remove an instance of
> -	<string>. Note that this is different than the string simply
> -	appearing in diff output; see the 'pickaxe' entry in
> -	linkgit:gitdiffcore[7] for more details.
> +	Look for commits where the specified string was added or
> +	removed.  More precisely, find commits that change the number
> +	of occurrences of the specified string.

Any time you say "This means that", "More precisely", etc. please check if you can rewrite it to lose everything before them (i.e. a vague sentence that needs to be clarified may not have to be there at all).

> ++
> +It is often useful when you're looking for an exact string (like a
> +function prototype), and want to know the history of that string since
> +it first came into being.

I think you should remind that the most useful case (and indeed the intended one) is for "an exact string" to be a multi-line "block of text". People often get a (wrong) impression from the word "string" that it is meant to be used with a single-liner.

Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 2 of 20 in “diffcore-pickaxe doc: document -S and -G properly”
  1. diffcore-pickaxe doc: document -S and -G properlyRamkumar Ramachandra, May 14, 2013
  2. Junio C HamanoMay 14, 2013
  3. Ramkumar RamachandraMay 14, 2013
  4. Junio C HamanoMay 14, 2013
  5. Ramkumar RamachandraMay 14, 2013
  6. Jonathan NiederMay 14, 2013
  7. Ramkumar RamachandraMay 14, 2013
  8. Jonathan NiederMay 14, 2013
  9. Junio C HamanoMay 14, 2013
  10. Junio C HamanoMay 14, 2013
  11. Phil HordMay 14, 2013
  12. Phil HordMay 14, 2013
  13. Phil HordMay 14, 2013
  14. Ramkumar RamachandraMay 14, 2013
  15. Junio C HamanoMay 14, 2013
  16. Ramkumar RamachandraMay 14, 2013
  17. Junio C HamanoMay 14, 2013
  18. Ramkumar RamachandraMay 14, 2013
  19. Phil HordMay 14, 2013
  20. Junio C HamanoMay 14, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.