diff options
| author | Michele Ballabio <barra_cuda@katamail.com> | 2010-02-24 21:49:03 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2010-02-24 12:59:09 -0800 |
| commit | 3731449591130b2f5ca7257c46721785a6340a18 (patch) | |
| tree | 870eecb5cd1caed3b81d8a911e6cdb92959001b6 /diff.c | |
| parent | e923eaeb901ff056421b9007adcbbce271caa7b6 (diff) | |
shortlog: warn the user when there is no input
A simple "git shortlog" outside of a git repository stalls
waiting for an input. Check if that's the case by testing with
isatty() before read_from_stdin(), and warn the user like
"git commit" does in a similar case.
Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
