diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-30 15:01:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-30 15:01:31 -0700 |
commit | 05bb78abc179b47f6288b990c1ba8f3d403cad1d (patch) | |
tree | 1a5dc09b15a2922a7596374fff1031b878d83cfc /cache.h | |
parent | 773e3a2e0226cffac6c813c2d3bea5ba480675d8 (diff) | |
parent | 0bfff8146f8c055fd95af4567286929ba8216fa7 (diff) | |
download | git-05bb78abc179b47f6288b990c1ba8f3d403cad1d.tar.gz |
Merge tag 'v2.10.4' into maint-2.11
Git 2.10.4
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |