Skip to content

Commit

Permalink
quote.h: fix bogus comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Sep 14, 2011
1 parent 163ed56 commit 7878b07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions quote.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7878b07

Please sign in to comment.