aboutsummaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 14:46:43 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-30 14:46:43 -0700
commit7720c33f632c2d67b53169030a7ed2e0e6ae8fde (patch)
tree7132d4b21e8be0e2dd1bc322f092b96e1426c488 /path.c
parentcd0887327544ecdc8778e16219aec3f43b0dd682 (diff)
parent5e0649dc65fe33e8cf38823350e9d7951f6a6346 (diff)
downloadgit-7720c33f632c2d67b53169030a7ed2e0e6ae8fde.tar.gz
Merge tag 'v2.7.6' into maint-2.8
Git 2.7.6
Diffstat (limited to 'path.c')
-rw-r--r--path.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/path.c b/path.c
index 503766784c..6fbc4c38cc 100644
--- a/path.c
+++ b/path.c
@@ -1181,6 +1181,11 @@ int is_ntfs_dotgit(const char *name)
}
}
+int looks_like_command_line_option(const char *str)
+{
+ return str && str[0] == '-';
+}
+
char *xdg_config_home(const char *filename)
{
const char *home, *config_home;