Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-31 00:52:14 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-31 00:52:14 +0300
commitaf0178aec7c38cb17bc641bc361656cc90bc6b79 (patch)
tree0d26db4f796c29dd208ceb567f2022bad65c7ca1 /cache.h
parentd61226c1118f749280c050555d83560ca0f3bf71 (diff)
parent8d7f72f176ea133c16e55f386a0b79a1cd46ff69 (diff)
Merge tag 'v2.8.6' into maint-2.9
Git 2.8.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 1fd2d5dc3e..84148cf9ea 100644
--- a/cache.h
+++ b/cache.h
@@ -1035,6 +1035,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