summaryrefslogtreecommitdiffstats
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-31 00:01:31 +0200
committerJunio C Hamano <gitster@pobox.com>2017-07-31 00:01:31 +0200
commit05bb78abc179b47f6288b990c1ba8f3d403cad1d (patch)
tree1a5dc09b15a2922a7596374fff1031b878d83cfc /path.c
parentGit 2.11.2 (diff)
parentGit 2.10.4 (diff)
downloadgit-05bb78abc179b47f6288b990c1ba8f3d403cad1d.tar.xz
git-05bb78abc179b47f6288b990c1ba8f3d403cad1d.zip
Merge tag 'v2.10.4' into maint-2.11
Git 2.10.4
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 efcedafba6..897b3417d4 100644
--- a/path.c
+++ b/path.c
@@ -1257,6 +1257,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;