summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-01 12:27:31 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-01 12:27:31 -0700
commite312af164c12052b7a0dbf8f7b86549a3c5b578f (patch)
tree2305e144bb615718f3e163ecfc52bc639a4c0e41 /path.c
parentcf8899d285d2648013040ec7196ffd3de0606664 (diff)
parent3d9c5b5c4461957fbbc0479e037990db04ebb740 (diff)
downloadgit-e312af164c12052b7a0dbf8f7b86549a3c5b578f.tar.gz
Merge tag 'v2.12.4' 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 c1cb1cf627..0349a0ab7b 100644
--- a/path.c
+++ b/path.c
@@ -1241,6 +1241,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;