Merge branch 'mb/shortlog-nongit-stdin'
* mb/shortlog-nongit-stdin: shortlog: warn the user when there is no input
This commit is contained in:
commit
0d1f2a56b1
@ -295,6 +295,8 @@ parse_done:
|
||||
if (!nongit && !rev.pending.nr && isatty(0))
|
||||
add_head_to_pending(&rev);
|
||||
if (rev.pending.nr == 0) {
|
||||
if (isatty(0))
|
||||
fprintf(stderr, "(reading log message from standard input)\n");
|
||||
read_from_stdin(&log);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user