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

Re: [PATCH] errors: "strict subset" -> "ancestor"

From
Wincent Colaiuta <win@wincent.com>
Date
Nov 5, 2007, 13:06 UTC
Message-ID
<E7B0CBAA-BB97-40A0-8CFB-A6F01A047D17@wincent.com>
In-Reply-To
<ee77f5c20711030014x23ac6206rec81fe5968992147@mail.gmail.com>
El 3/11/2007, a las 8:14, David Symonds escribió:
Show 25 quoted lines
> On 11/3/07, Steffen Prohaska <prohaska@zib.de> wrote:
>>
>> On Nov 3, 2007, at 3:39 AM, J. Bruce Fields wrote:
>>
>>> diff --git a/send-pack.c b/send-pack.c
>>> index 5e127a1..b74fd45 100644
>>> --- a/send-pack.c
>>> +++ b/send-pack.c
>>> @@ -297,9 +297,9 @@ static int send_pack(int in, int out, struct
>>> remote *remote, int nr_refspec, cha
>>>                               * commits at the remote end and likely
>>>                               * we were not up to date to begin  
>>> with.
>>>                               */
>>> -                             error("remote '%s' is not a strict "
>>> -                                   "subset of local ref '%s'. "
>>> -                                   "maybe you are not up-to-date  
>>> and "
>>> +                             error("remote '%s' is not an  
>>> ancestor of\n"
>>> +                                   " local  '%s'.\n"
>>
>> Two spaces in a row after local and before '%s'.
>
> So? That's presumably to align the remote and local strings.
Kind of: it aligns "error:" with "local":
	error: remote 'refs/heads/master' is not an ancestor of
	 local 'refs/heads/master'.

Personal I think it would be better to align the right edges of "remote" and "local" so that it looks like the following; this more clearly shows the correspondence between the remote and local refs:

	error: remote 'refs/heads/master' is not an ancestor of
	        local 'refs/heads/master'.
Or alternatively:
	error: remote 'refs/heads/master' is not an ancestor of
	       local  'refs/heads/master'.

Cheers, Wincent

Previous: J. Bruce FieldsNext: Jeff King
Message 6 of 10 in “errors: "strict subset" -> "ancestor"”
  1. errors: "strict subset" -> "ancestor"J. Bruce Fields, Nov 3, 2007
  2. Steffen ProhaskaNov 3, 2007
  3. David SymondsNov 3, 2007
  4. Steffen ProhaskaNov 3, 2007
  5. errors: "strict subset" -> "ancestor"J. Bruce Fields, Nov 4, 2007
  6. Wincent ColaiutaNov 5, 2007
  7. Jeff KingNov 5, 2007
  8. Steffen ProhaskaNov 3, 2007
  9. J. Bruce FieldsNov 4, 2007
  10. Steffen ProhaskaNov 4, 2007

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.