Skip to content

Commit f094b89

Browse files
Martin Ågrengitster
authored andcommitted
parse_decoration_style: drop unused argument var
The previous commit left it unused. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8957661 commit f094b89

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builtin/log.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct line_opt_callback_data {
5252
struct string_list args;
5353
};
5454

55-
static int parse_decoration_style(const char *var, const char *value)
55+
static int parse_decoration_style(const char *value)
5656
{
5757
switch (git_parse_maybe_bool(value)) {
5858
case 1:
@@ -76,7 +76,7 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
7676
if (unset)
7777
decoration_style = 0;
7878
else if (arg)
79-
decoration_style = parse_decoration_style("command line", arg);
79+
decoration_style = parse_decoration_style(arg);
8080
else
8181
decoration_style = DECORATE_SHORT_REFS;
8282

@@ -401,7 +401,7 @@ static int git_log_config(const char *var, const char *value, void *cb)
401401
if (!strcmp(var, "log.date"))
402402
return git_config_string(&default_date_mode, var, value);
403403
if (!strcmp(var, "log.decorate")) {
404-
decoration_style = parse_decoration_style(var, value);
404+
decoration_style = parse_decoration_style(value);
405405
if (decoration_style < 0)
406406
decoration_style = 0; /* maybe warn? */
407407
return 0;

0 commit comments

Comments
 (0)