aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 15:04:22 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-30 15:04:22 -0700
commit3def5e9a8de16c505d369187ac3ec2ff87ab562a (patch)
treee87f2b5057e04b7306257d90a43d83cdb84612c6 /cache.h
parent9315f271e3fffd1e60b23052c29704923da5837a (diff)
parent3b827444811d7eddeddd44850f5dbbb4d59747f5 (diff)
downloadgit-3def5e9a8de16c505d369187ac3ec2ff87ab562a.tar.gz
git-3def5e9a8de16c505d369187ac3ec2ff87ab562a.tar.xz
Merge tag 'v2.11.3' into maint-2.12
Git 2.11.3
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 900796c15..1c4686a7a 100644
--- a/cache.h
+++ b/cache.h
@@ -1118,6 +1118,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