summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97d45bc)
raw | patch | inline | side by side (parent: 97d45bc)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Mon, 10 May 2010 17:17:49 +0000 (01:17 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 May 2010 18:57:33 +0000 (11:57 -0700) |
Shift implementation into a private function, do_fmt_merge_msg(). This
allows for further changes to the implementation, without affecting the
interface.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
allows for further changes to the implementation, without affecting the
interface.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fmt-merge-msg.c | patch | blob | history |
index 379a03131fbd84fb2b45a6b05e62daf82b7e4947..a2bccd6ea4ac14441a6657bc1882cd180ec52b80 100644 (file)
--- a/builtin/fmt-merge-msg.c
+++ b/builtin/fmt-merge-msg.c
string_list_clear(&subjects, 0);
}
-int fmt_merge_msg(int merge_summary, struct strbuf *in, struct strbuf *out) {
+static int do_fmt_merge_msg(int merge_summary, struct strbuf *in,
+ struct strbuf *out) {
int limit = 20, i = 0, pos = 0;
char *sep = "";
unsigned char head_sha1[20];
return 0;
}
+int fmt_merge_msg(int merge_summary, struct strbuf *in, struct strbuf *out) {
+ return do_fmt_merge_msg(merge_summary, in, out);
+}
+
int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
{
const char *inpath = NULL;