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

Re: [PATCH 2/2] git-rev-list.txt: Clarify the use of multiple revision arguments

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 6, 2009, 08:48 UTC
Message-ID
<4A7A98FB.7070104@drmicha.warpmail.net>
In-Reply-To
<7vd47adxfq.fsf@alter.siamese.dyndns.org>
Junio C Hamano venit, vidit, dixit 05.08.2009 18:42:
Show 35 quoted lines
> Michael J Gruber <git@drmicha.warpmail.net> writes:
> 
>> diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt
>> index 847cc7d..40ca276 100644
>> --- a/Documentation/git-rev-list.txt
>> +++ b/Documentation/git-rev-list.txt
>> @@ -66,6 +66,13 @@ command:
>>  means "list all the commits which are included in 'foo' or 'bar', but
>>  not in 'baz'".
>>  
>> +So, the resulting set of commits is the union of 'foo' and 'bar',
>> +intersected with the complement of baz. The order of arguments is
>> +irrelevant: first, the union of all positive refs (those without
>> +'{caret}') is taken, then the result is intersected with all negative
>> +refs (i.e. with the complement of the union of all refs which appear
>> +with a preceding '{caret}').
> 
> It seems to me that the first sentence just repeats what the previous
> sentence that we can see in the context with different fuzziness.
> 
> I am guessing that the reason you are patching this is because you felt
> that the existing "list all the commits which are _included in_ 'foo' or
> 'bar', but not _in_ 'baz'" uses "be included in" without defining what it
> really means (i.e. "reachable by following the ancestry").
> 
> I however find the "union of 'foo' and 'bar' intersected with the
> complement of 'baz'" similarly lacking.  The sentence equates commit X
> with the set of commits that are reachable from X, without explaining that
> is what it is doing.
> 
> To me, this feels much worse than the original.  When you say commit X,
> the reader must guess if you are talking about the single commit, or the
> set of commits reachable from it by following the ancestry chain.
> 
> How about rewriting it a bit more without repeating?

Yes, I tried to be minimally invasive, which is also why I split the patch in two (correction + addition). I really prefer your rephrased version. Feel free to squash in/ask me to resubmit/whatever suits you.

Michael
Previous: Junio C Hamano
Message 4 of 4 in “git-rev-list.txt: Correct description for multiple arguments”
  1. 1/2 git-rev-list.txt: Correct description for multiple argumentsMichael J Gruber, Aug 5, 2009
  2. 2/2 git-rev-list.txt: Clarify the use of multiple revision argumentsMichael J Gruber, Aug 5, 2009
  3. Junio C HamanoAug 5, 2009
  4. Michael J GruberAug 6, 2009

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.