summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 21:57:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-30 21:57:33 (GMT)
commitd78f06a1b70f3743899b5494f55a456596e51a63 (patch)
tree5e36906085bb4fc68dbe0ca9bde047f260f031d6 /cache.h
parent840ed141983718e0c5518a325534a5656797132a (diff)
parent4d4165b80d6b91a255e2847583bd4df98b5d54e1 (diff)
downloadgit-d78f06a1b70f3743899b5494f55a456596e51a63.zip
git-d78f06a1b70f3743899b5494f55a456596e51a63.tar.gz
git-d78f06a1b70f3743899b5494f55a456596e51a63.tar.bz2
Merge tag 'v2.9.5' into maint-2.10
Git 2.9.5
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 1ec9021..2125eb5 100644
--- a/cache.h
+++ b/cache.h
@@ -1042,6 +1042,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