diff options
author | Carlos Rica <jasampler@gmail.com> | 2007-07-11 20:50:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-11 21:17:07 -0700 |
commit | 975e0daf5edba09060147d643e628b8c89e1d467 (patch) | |
tree | a68a6f1aba6261f2d6aa020600b994deb5223753 /builtin.h | |
parent | 73f893605050c291dd8c4d8f3f50b8fec47dcf51 (diff) | |
download | git-975e0daf5edba09060147d643e628b8c89e1d467.tar.gz |
Function stripspace now gets a buffer instead file descriptors.
An implementation easier to call from builtins. It is designed
to be used from the upcoming builtin-tag.c and builtin-commit.c,
because both need to remove unwanted spaces from messages.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ extern const char git_version_string[]; extern const char git_usage_string[]; extern void help_unknown_cmd(const char *cmd); -extern void stripspace(FILE *in, FILE *out, int skip_comments); +extern size_t stripspace(char *buffer, size_t length, int skip_comments); extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix); extern void prune_packed_objects(int); |