diff options
author | Stephan Beyer <s-beyer@gmx.net> | 2008-07-25 18:28:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-25 17:09:38 -0700 |
commit | 7198203ae37c11327c0d01f1e37f3e74381755a9 (patch) | |
tree | 85943c2eca8abf5458105626471f517a340cc5a2 /strbuf.h | |
parent | d82f33e20dcf068e679eff2a16ecf8fe7b10fb31 (diff) | |
download | git-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |