summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-08-04 12:40:37 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-04 12:40:37 -0700
commit230ce07d134f597a8107d3ed5d76d212ff90db70 (patch)
tree9f9de19330fc4c7edcee3b286ef68d1a7561284c /path.c
parentGit 2.14 (diff)
parentGit 2.13.5 (diff)
downloadtgif-230ce07d134f597a8107d3ed5d76d212ff90db70.tar.xz
Merge tag 'v2.13.5' into maint
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 e485f9f931..e50d2befcf 100644
--- a/path.c
+++ b/path.c
@@ -1321,6 +1321,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;