summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 22:01:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-30 22:01:31 (GMT)
commit05bb78abc179b47f6288b990c1ba8f3d403cad1d (patch)
tree1a5dc09b15a2922a7596374fff1031b878d83cfc /cache.h
parent773e3a2e0226cffac6c813c2d3bea5ba480675d8 (diff)
parent0bfff8146f8c055fd95af4567286929ba8216fa7 (diff)
downloadgit-05bb78abc179b47f6288b990c1ba8f3d403cad1d.zip
git-05bb78abc179b47f6288b990c1ba8f3d403cad1d.tar.gz
git-05bb78abc179b47f6288b990c1ba8f3d403cad1d.tar.bz2
Merge tag 'v2.10.4' into maint-2.11
Git 2.10.4
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 5c035da..aaf5695 100644
--- a/cache.h
+++ b/cache.h
@@ -1108,6 +1108,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