From edc58e70a1988fa0aa1b56c500419b7886bae6dc Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 8 Mar 2011 20:03:02 -0500 Subject: [PATCH] [GH-3] Expand %(directory) to . for the root directory --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ""), -- 2.30.2