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

Re: [PATCH] builtin/add: add a missing newline to an stderr message

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Aug 8, 2017, 23:55 UTC
Message-ID
<a04808d5-8a53-d9d7-0168-55a9aa79cf7b@ramsayjones.plus.com>
In-Reply-To
<2821200b-0428-a5dd-9680-f291cee0ec47@web.de>
On 08/08/17 22:45, René Scharfe wrote:
Show 38 quoted lines
> Am 08.08.2017 um 23:36 schrieb Ramsay Jones:
>>
>> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
>> ---
>>
>> Hi Junio,
>>
>> I noticed this while looking into the t3700 failure on cygwin tonight.
>> Also, I couldn't decide whether or not to add the i18n '_()' brackets
>> around the message. In the end I didn't, but will happily add them
>> if you think I should.
>>
>> Thanks!
>>
>> ATB,
>> Ramsay Jones
>>
>>   builtin/add.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/builtin/add.c b/builtin/add.c
>> index e888fb8c5..385b53ae7 100644
>> --- a/builtin/add.c
>> +++ b/builtin/add.c
>> @@ -43,7 +43,7 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
>>   			continue;
>>   
>>   		if (chmod_cache_entry(ce, force_mode) < 0)
>> -			fprintf(stderr, "cannot chmod '%s'", ce->name);
>> +			fprintf(stderr, "cannot chmod '%s'\n", ce->name);
>>   	}
>>   }
>>   
> 
> FYI: I brought this up yesterday in the original thread, along with a
> few other observations:
> 
>   https://public-inbox.org/git/3c61d9f6-e0fd-22a4-68e0-89fd9ce9b944@web.de/
Ah, I missed that.

Hmm, I just looked at the code in builtin/update-index.c. Yes, it would probably be a good idea to harmonize the messages - but just where did 'flip' come from? ;-)

ATB, Ramsay Jones

Previous: Junio C HamanoNext: Jonathan Nieder
Message 6 of 7 in “builtin/add: add a missing newline to an stderr message”
  1. builtin/add: add a missing newline to an stderr messageRamsay Jones, Aug 8, 2017
  2. René ScharfeAug 8, 2017
  3. Junio C HamanoAug 8, 2017
  4. Jonathan NiederAug 8, 2017
  5. Junio C HamanoAug 9, 2017
  6. Ramsay JonesAug 8, 2017
  7. Jonathan NiederAug 8, 2017

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.