builtin/am: introduce write_state_*() helper functions
[gitweb.git] / builtin / shortlog.c
index 4b7e53623fc9cf0c86ed0e7e87d4b3357d765d86..007cc66a036429d602cf7afe19c163fcf6d06395 100644 (file)
@@ -10,7 +10,7 @@
 #include "parse-options.h"
 
 static char const * const shortlog_usage[] = {
-       N_("git shortlog [<options>] [<revision range>] [[--] [<path>...]]"),
+       N_("git shortlog [<options>] [<revision-range>] [[--] [<path>...]]"),
        NULL
 };
 
@@ -138,7 +138,7 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
                ctx.abbrev = log->abbrev;
                ctx.subject = "";
                ctx.after_subject = "";
-               ctx.date_mode = DATE_NORMAL;
+               ctx.date_mode.type = DATE_NORMAL;
                ctx.output_encoding = get_log_output_encoding();
                pretty_print_commit(&ctx, commit, &ufbuf);
                buffer = ufbuf.buf;