Browse Source

Merge branch 'mb/shortlog-nongit-stdin'

* mb/shortlog-nongit-stdin:
  shortlog: warn the user when there is no input
maint
Junio C Hamano 15 years ago
parent
commit
0d1f2a56b1
  1. 2
      builtin-shortlog.c

2
builtin-shortlog.c

@ -295,6 +295,8 @@ parse_done: @@ -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…
Cancel
Save