summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 21:46:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-30 21:46:43 (GMT)
commit7720c33f632c2d67b53169030a7ed2e0e6ae8fde (patch)
tree7132d4b21e8be0e2dd1bc322f092b96e1426c488 /cache.h
parentcd0887327544ecdc8778e16219aec3f43b0dd682 (diff)
parent5e0649dc65fe33e8cf38823350e9d7951f6a6346 (diff)
downloadgit-7720c33f632c2d67b53169030a7ed2e0e6ae8fde.zip
git-7720c33f632c2d67b53169030a7ed2e0e6ae8fde.tar.gz
git-7720c33f632c2d67b53169030a7ed2e0e6ae8fde.tar.bz2
Merge tag 'v2.7.6' into maint-2.8
Git 2.7.6
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 4ff196c..924354f 100644
--- a/cache.h
+++ b/cache.h
@@ -1030,6 +1030,14 @@ char *strip_path_suffix(const char *path, const char *suffix);
int daemon_avoid_alias(const char *path);
extern int is_ntfs_dotgit(const char *name);
+/*
+ * Returns true iff "str" could be confused as a command-line option when
+ * passed to a sub-program like "ssh". Note that this has nothing to do with
+ * shell-quoting, which should be handled separately; we're assuming here that
+ * the string makes it verbatim to the sub-program.
+ */
+int looks_like_command_line_option(const char *str);
+
/**
* Return a newly allocated string with the evaluation of
* "$XDG_CONFIG_HOME/git/$filename" if $XDG_CONFIG_HOME is non-empty, otherwise