summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-28 16:11:54 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-28 16:11:54 -0700
commita4f234bf9bd3fb11fb1608a507783d9412af27a9 (patch)
tree844124df0896caa172359b472bf436c8d13be969 /path.c
parentc8dd1e3bb1152844983558802a52c9e4c17652b4 (diff)
parentaeeb2d496859419ac1ba1da1162d6f3610f7f1f3 (diff)
downloadgit-a4f234bf9bd3fb11fb1608a507783d9412af27a9.tar.gz
Merge branch 'jk/ssh-funny-url' into maint-2.7
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 8b7e168129..b214ac3fe6 100644
--- a/path.c
+++ b/path.c
@@ -1178,6 +1178,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;