diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-04 12:45:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-04 12:45:17 -0700 |
commit | 4274c698f46a9bc45834c4904e7e113450c042fb (patch) | |
tree | 4a1a1c518321bd96967175a5c5327af56cade9ee /cache.h | |
parent | 85df69e47eda1421d86b9a1bcc6fbf26d94e351a (diff) | |
parent | 4d7268b888d7bb6d675340ec676e4239739d0f6d (diff) | |
download | git-4274c698f46a9bc45834c4904e7e113450c042fb.tar.gz git-4274c698f46a9bc45834c4904e7e113450c042fb.tar.xz |
Merge tag 'v2.14.1'
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |