diff options
author | Chris Webb <chris@arachsys.com> | 2010-04-03 00:37:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-04 14:21:54 -0700 |
commit | d511bd330d66fe8f0be21855888e30af2f3e373b (patch) | |
tree | 0df8a6905ac831f252d478863d2c1263073581a7 /cache.h | |
parent | b27eb49948c90af11cee39301d03c37a05e066de (diff) | |
download | git-d511bd330d66fe8f0be21855888e30af2f3e373b.tar.gz git-d511bd330d66fe8f0be21855888e30af2f3e373b.tar.xz |
whitespace: replumb ws_fix_copy to take a strbuf *dst instead of char *dst
To implement --whitespace=fix for tab-in-indent, we have to allow for the
possibility that whitespace can increase in size when it is fixed, expanding
tabs to to multiple spaces in the initial indent.
Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1049,7 +1049,7 @@ extern unsigned parse_whitespace_rule(const char *); extern unsigned ws_check(const char *line, int len, unsigned ws_rule); extern void ws_check_emit(const char *line, int len, unsigned ws_rule, FILE *stream, const char *set, const char *reset, const char *ws); extern char *whitespace_error_string(unsigned ws); -extern int ws_fix_copy(char *, const char *, int, unsigned, int *); +extern void ws_fix_copy(struct strbuf *, const char *, int, unsigned, int *); extern int ws_blank_line(const char *line, int len, unsigned ws_rule); /* ls-files */ |