diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-30 15:04:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-30 15:04:22 -0700 |
commit | 3def5e9a8de16c505d369187ac3ec2ff87ab562a (patch) | |
tree | e87f2b5057e04b7306257d90a43d83cdb84612c6 /cache.h | |
parent | 9315f271e3fffd1e60b23052c29704923da5837a (diff) | |
parent | 3b827444811d7eddeddd44850f5dbbb4d59747f5 (diff) | |
download | git-3def5e9a8de16c505d369187ac3ec2ff87ab562a.tar.gz |
Merge tag 'v2.11.3' into maint-2.12
Git 2.11.3
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |