status: rename long-format print routines
[gitweb.git] / builtin / commit.c
index 3f189428b1214a363b4ba2280d45f76540341f2d..b80273b5396e366bc3b6463c007e6ebd32bff46d 100644 (file)
@@ -515,7 +515,7 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix, int
                break;
        case STATUS_FORMAT_NONE:
        case STATUS_FORMAT_LONG:
-               wt_status_print(s);
+               wt_longstatus_print(s);
                break;
        }
 
@@ -715,7 +715,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
                char *buffer;
                buffer = strstr(use_message_buffer, "\n\n");
                if (buffer)
-                       strbuf_addstr(&sb, buffer + 2);
+                       strbuf_addstr(&sb, skip_blank_lines(buffer + 2));
                hook_arg1 = "commit";
                hook_arg2 = use_message;
        } else if (fixup_message) {
@@ -1403,7 +1403,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
        case STATUS_FORMAT_LONG:
                s.verbose = verbose;
                s.ignore_submodule_arg = ignore_submodule_arg;
-               wt_status_print(&s);
+               wt_longstatus_print(&s);
                break;
        }
        return 0;