diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-01 12:27:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-01 12:27:31 -0700 |
commit | e312af164c12052b7a0dbf8f7b86549a3c5b578f (patch) | |
tree | 2305e144bb615718f3e163ecfc52bc639a4c0e41 /cache.h | |
parent | Git 2.13.4 (diff) | |
parent | Git 2.12.4 (diff) | |
download | tgif-e312af164c12052b7a0dbf8f7b86549a3c5b578f.tar.xz |
Merge tag 'v2.12.4' into maint
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1190,6 +1190,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 |