From 6c8ab51718426530e89e3d742c64054e539ee524 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 11 Dec 2009 17:13:37 -0500 Subject: [PATCH] Fix parsing of boolean show-date values It was broken during the introduction of relative dates. --- NEWS | 1 + tig.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2