aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-04 12:45:17 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-04 12:45:17 -0700
commit4274c698f46a9bc45834c4904e7e113450c042fb (patch)
tree4a1a1c518321bd96967175a5c5327af56cade9ee /cache.h
parent85df69e47eda1421d86b9a1bcc6fbf26d94e351a (diff)
parent4d7268b888d7bb6d675340ec676e4239739d0f6d (diff)
downloadgit-4274c698f46a9bc45834c4904e7e113450c042fb.tar.gz
git-4274c698f46a9bc45834c4904e7e113450c042fb.tar.xz
Merge tag 'v2.14.1'
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 71fe09264..a09a5017f 100644
--- a/cache.h
+++ b/cache.h
@@ -1146,6 +1146,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