status: add --porcelain output format
[gitweb.git] / builtin-pack-objects.c
index 60355d41fdb97546ead3420eb461758e45658cb5..ef4bf6bc14aadffcd85999c2eca59e5a0e7e6451 100644 (file)
@@ -649,8 +649,7 @@ static void rehash_objects(void)
 
 static unsigned name_hash(const char *name)
 {
-       unsigned char c;
-       unsigned hash = 0;
+       unsigned c, hash = 0;
 
        if (!name)
                return 0;
@@ -2256,6 +2255,10 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
                                die("bad %s", arg);
                        continue;
                }
+               if (!strcmp(arg, "--keep-true-parents")) {
+                       grafts_replace_parents = 0;
+                       continue;
+               }
                usage(pack_usage);
        }