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

Re: [PATCH v5 2/2] launch_editor(): indicate that Git waits for user input

From
Lars Schneider <larsxschneider@gmail.com>
Date
Dec 7, 2017, 16:16 UTC
Message-ID
<D17F94FA-702E-4E37-BDA5-94F0FFD5BD01@gmail.com>
In-Reply-To
<FCBDBD58-0593-4FFC-B574-61D67CAF13C6@gmail.com>
Show 21 quoted lines
> On 07 Dec 2017, at 16:48, Lars Schneider <larsxschneider@gmail.com> wrote:
> 
> 
>> On 07 Dec 2017, at 16:43, Junio C Hamano <gitster@pobox.com> wrote:
>> 
>> lars.schneider@autodesk.com writes:
>> ...
> 
> How about this?
> 
> 			fprintf(stderr,
> 				_("hint: Waiting for your editor to close the file..."));
> 			if (is_terminal_dumb())
> 				/*
> 				 * A dumb terminal cannot erase the line later on. Add a
> 				 * newline to separate the hint from subsequent output.
> 				 */
> 				fprintf(stderr, "\n")
> 			else
> 				fprintf(stderr, " ")
> 
I forgot the ";" ... switching between programming languages ;-)
			if (is_terminal_dumb())
				/*
				 * A dumb terminal cannot erase the line later on. Add a
				 * newline to separate the hint from subsequent output.
				 */
				fprintf(stderr, "\n");
			else
				fprintf(stderr, " ");
> Can you squash that if you like it?
> 
> Thanks,
> Lars
Previous: Lars SchneiderNext: Junio C Hamano
Message 6 of 10 in “launch_editor(): indicate that Git waits for user input”
  1. 0/2 launch_editor(): indicate that Git waits for user inputlars.schneider@autodesk.com, Dec 7, 2017
  2. 1/2 refactor "dumb" terminal determinationlars.schneider@autodesk.com, Dec 7, 2017
  3. 2/2 launch_editor(): indicate that Git waits for user inputlars.schneider@autodesk.com, Dec 7, 2017
  4. Junio C HamanoDec 7, 2017
  5. Lars SchneiderDec 7, 2017
  6. Lars SchneiderDec 7, 2017
  7. Junio C HamanoDec 7, 2017
  8. Lars SchneiderDec 7, 2017
  9. Kaartic SivaraamDec 7, 2017
  10. Lars SchneiderDec 7, 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.