summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorGreg Brockman <gdb@MIT.EDU>2010-08-07 01:13:39 -0400
committerJunio C Hamano <gitster@pobox.com>2010-08-11 09:36:23 -0700
commitad9ac6db5d58de08d0497b9184e86926377c20dd (patch)
tree02a6ec6fd2fd40799d9d1c4c1fcba657b5adbcc4 /cache.h
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
downloadgit-ad9ac6db5d58de08d0497b9184e86926377c20dd.tar.gz
split_cmdline: Allow caller to access error string
This allows the caller to add its own error message to that returned by split_cmdline. Thus error output following a failed split_cmdline can be of the form fatal: Bad alias.test string: cmdline ends with \ rather than error: cmdline ends with \ fatal: Bad alias.test string Signed-off-by: Greg Brockman <gdb@mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c9fa3df7f5..7466ad04fa 100644
--- a/cache.h
+++ b/cache.h
@@ -1096,6 +1096,8 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix);
char *alias_lookup(const char *alias);
int split_cmdline(char *cmdline, const char ***argv);
+/* Takes a negative value returned by split_cmdline */
+const char *split_cmdline_strerror(int cmdline_errno);
/* builtin/merge.c */
int checkout_fast_forward(const unsigned char *from, const unsigned char *to);