shortlog: warn the user when there is no input
[gitweb.git] / builtin-shortlog.c
index b3b055f68ce59b6b91ef6949bd8c4bd0bed68b55..22668b4d3d01d112b185fba8ae7b3a4a6948b4cf 100644 (file)
@@ -295,6 +295,8 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
        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