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

Re: [PATCH] shortlog: do not stall when there is no input

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 24, 2010, 19:31 UTC
Message-ID
<7vvddmmnvo.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201002242020.27801.barra_cuda@katamail.com>
Michele Ballabio <barra_cuda@katamail.com> writes:
> A simple "git shortlog" outside of a git repository used to stall
> waiting for an input. Fix this by testing with isatty() before
> calling read_from_stdin().

I'd actually prefer doing what "git commit" does. Give a helpful hint that it is waiting for input from the standard input, but do read from standard input as the program is instructed to do.

That way people who drive the program with expect will not be broken ;-) but that is a minor point.

Previous: Michele BallabioNext: Michele Ballabio
Message 2 of 3 in “shortlog: do not stall when there is no input”
  1. shortlog: do not stall when there is no inputMichele Ballabio, Feb 24, 2010
  2. Junio C HamanoFeb 24, 2010
  3. shortlog: warn the user when there is no inputMichele Ballabio, Feb 24, 2010

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.