summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorStephan Beyer <s-beyer@gmx.net>2008-07-25 18:28:42 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-25 17:09:38 -0700
commit7198203ae37c11327c0d01f1e37f3e74381755a9 (patch)
tree85943c2eca8abf5458105626471f517a340cc5a2 /strbuf.h
parentd82f33e20dcf068e679eff2a16ecf8fe7b10fb31 (diff)
downloadgit-7198203ae37c11327c0d01f1e37f3e74381755a9.tar.gz
editor.c: Libify launch_editor()
This patch removes exit()/die() calls and builtin-specific messages from launch_editor(), so that it can be used as a general libgit.a function to launch an editor. Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/strbuf.h b/strbuf.h
index 0c6ffad53a..eba7ba423a 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -123,6 +123,6 @@ extern int strbuf_read_file(struct strbuf *sb, const char *path, size_t hint);
extern int strbuf_getline(struct strbuf *, FILE *, int);
extern void stripspace(struct strbuf *buf, int skip_comments);
-extern void launch_editor(const char *path, struct strbuf *buffer, const char *const *env);
+extern int launch_editor(const char *path, struct strbuf *buffer, const char *const *env);
#endif /* STRBUF_H */