drop length argument of has_extension
[gitweb.git] / builtin-fmt-merge-msg.c
index 338f2094f32504b71d41e16062010b75e33e96a3..485ede7cad65f7fd69e2dbaff6b32b8ad3051c54 100644 (file)
@@ -1,3 +1,4 @@
+#include "builtin.h"
 #include "cache.h"
 #include "commit.h"
 #include "diff.h"
@@ -242,7 +243,7 @@ static void shortlog(const char *name, unsigned char *sha1,
        free_list(&subjects);
 }
 
-int cmd_fmt_merge_msg(int argc, char **argv, char **envp)
+int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
 {
        int limit = 20, i = 0;
        char line[1024];
@@ -250,7 +251,6 @@ int cmd_fmt_merge_msg(int argc, char **argv, char **envp)
        const char *sep = "";
        unsigned char head_sha1[20];
        const char *head, *current_branch;
-       const char *prefix = setup_git_directory();
 
        git_config(fmt_merge_msg_config);