commit: allow core.commentChar=auto for character auto selection
[gitweb.git] / environment.c
index c3c860603da817b75d73bc446d03944e1963e874..f2de1ee9ada0c1211fe7e31da52011ec0825758d 100644 (file)
@@ -69,6 +69,7 @@ unsigned long pack_size_limit_cfg;
  * that is subject to stripspace.
  */
 char comment_line_char = '#';
+int auto_comment_line_char;
 
 /* Parallel index stat data preload? */
 int core_preload_index = 0;
@@ -237,7 +238,7 @@ int odb_mkstemp(char *template, size_t limit, const char *pattern)
        return xmkstemp_mode(template, mode);
 }
 
-int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1)
+int odb_pack_keep(char *name, size_t namesz, const unsigned char *sha1)
 {
        int fd;