summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2007-07-11 18:50:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-12 04:17:07 (GMT)
commit975e0daf5edba09060147d643e628b8c89e1d467 (patch)
treea68a6f1aba6261f2d6aa020600b994deb5223753 /builtin.h
parent73f893605050c291dd8c4d8f3f50b8fec47dcf51 (diff)
downloadgit-975e0daf5edba09060147d643e628b8c89e1d467.zip
git-975e0daf5edba09060147d643e628b8c89e1d467.tar.gz
git-975e0daf5edba09060147d643e628b8c89e1d467.tar.bz2
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.h b/builtin.h
index 661a92f..4cc228d 100644
--- a/builtin.h
+++ b/builtin.h
@@ -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);