Code

[GH-3] Expand %(directory) to . for the root directory
[tig.git] / tig.c
diff --git a/tig.c b/tig.c
index 9132d3a77683227c2508c9900d64ef6c4bf2c496..9250cd7013e7c26b8187ce09c2ead6233bc61f87 100644 (file)
--- 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,       ""),