diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2015-04-20 14:09:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-04-20 11:06:10 -0700 |
commit | 0269f968b7effea8a4f61f1fb0ac7e9386a9d90c (patch) | |
tree | b16adab6818608f864d94ed20487b5c81a9c86c0 /line-log.c | |
parent | d349e0ee60e1bad1cf49245e402ca086ddb5ff80 (diff) | |
download | git-0269f968b7effea8a4f61f1fb0ac7e9386a9d90c.tar.gz |
log -L: improve error message on malformed argumentmm/usage-log-l-can-take-regex
The old message did not mention the :regex:file form.
To avoid overly long lines, split the message into two lines (in case
item->string is long, it will be the only part truncated in a narrow
terminal).
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.c')
-rw-r--r-- | line-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/line-log.c b/line-log.c index b7864ad586..1a6bc5921b 100644 --- a/line-log.c +++ b/line-log.c @@ -575,7 +575,7 @@ parse_lines(struct commit *commit, const char *prefix, struct string_list *args) name_part = skip_range_arg(item->string); if (!name_part || *name_part != ':' || !name_part[1]) - die("-L argument '%s' not of the form start,end:file", + die("-L argument not 'start,end:file' or ':funcname:file': %s", item->string); range_part = xstrndup(item->string, name_part - item->string); name_part++; |