Skip to content

Commit 7878b07

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 163ed56 commit 7878b07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

quote.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ extern char *sq_dequote(char *);
4040

4141
/*
4242
* Same as the above, but can be used to unwrap many arguments in the
43-
* same string separated by space. "next" is changed to point to the
44-
* next argument that should be passed as first parameter. When there
45-
* is no more argument to be dequoted, "next" is updated to point to NULL.
43+
* same string separated by space. Like sq_quote, it works in place,
44+
* modifying arg and appending pointers into it to argv.
4645
*/
4746
extern int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc);
4847

0 commit comments

Comments
 (0)