summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-09-13 17:57:47 -0400
committerJunio C Hamano <gitster@pobox.com>2011-09-14 11:44:05 -0700
commit7878b07c0d86d05fa505f2464557c69addcc2c05 (patch)
tree6655429769d51faff919011bfa802e6a4626260f
parent163ed566db7fd0f286413040e368324a59c642f9 (diff)
downloadgit-7878b07c0d86d05fa505f2464557c69addcc2c05.tar.gz
quote.h: fix bogus comment
Commit 758e915 made sq_quote_next static, removing it from quote.h. However, it forgot to update the related comment, making it appear as a confusing description of sq_quote_to_argv. Let's remove the crufty bits, and elaborate more on sq_quote_to_argv. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--quote.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/quote.h b/quote.h
index 024e21d80c..252b0df4b2 100644
--- a/quote.h
+++ b/quote.h
@@ -40,9 +40,8 @@ extern char *sq_dequote(char *);
/*
* Same as the above, but can be used to unwrap many arguments in the
- * same string separated by space. "next" is changed to point to the
- * next argument that should be passed as first parameter. When there
- * is no more argument to be dequoted, "next" is updated to point to NULL.
+ * same string separated by space. Like sq_quote, it works in place,
+ * modifying arg and appending pointers into it to argv.
*/
extern int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc);