From: Jonas Fonseca Date: Wed, 9 Mar 2011 01:03:02 +0000 (-0500) Subject: [GH-3] Expand %(directory) to . for the root directory X-Git-Url: https://git.tokkee.org/?p=tig.git;a=commitdiff_plain;h=edc58e70a1988fa0aa1b56c500419b7886bae6dc [GH-3] Expand %(directory) to . for the root directory --- diff --git a/tig.c b/tig.c index 9132d3a..9250cd7 100644 --- a/tig.c +++ b/tig.c @@ -2343,7 +2343,7 @@ format_arg(const char *name) } vars[] = { #define FORMAT_VAR(name, value, value_if_empty) \ { name, STRING_SIZE(name), value, value_if_empty } - FORMAT_VAR("%(directory)", opt_path, ""), + FORMAT_VAR("%(directory)", opt_path, "."), FORMAT_VAR("%(file)", opt_file, ""), FORMAT_VAR("%(ref)", opt_ref, "HEAD"), FORMAT_VAR("%(head)", ref_head, ""),