From: Jonas Fonseca Date: Fri, 11 Dec 2009 22:13:37 +0000 (-0500) Subject: Fix parsing of boolean show-date values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c8ab51718426530e89e3d742c64054e539ee524;p=tig.git Fix parsing of boolean show-date values It was broken during the introduction of relative dates. --- diff --git a/NEWS b/NEWS index 31b5169..e80e847 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ Bug fixes: - Status view: fix usage from sub directories, which was broken by the changes made to support blame view from sub directories. + - Fix parsing of boolean show-date values. tig-0.15 -------- diff --git a/tig.c b/tig.c index 935f447..cf4e61a 100644 --- a/tig.c +++ b/tig.c @@ -1703,8 +1703,9 @@ option_set_command(int argc, const char *argv[]) } else if (!strcmp(argv[2], "short")) { opt_date = DATE_SHORT; return OK; - } else if (parse_bool(&show_date, argv[2])) { + } else if (parse_bool(&show_date, argv[2]) == OK) { opt_date = show_date ? DATE_DEFAULT : DATE_NONE; + return OK; } return ERR; }