Code

git repack: keep commits hidden by a graft
[git.git] / builtin-pack-objects.c
index 941cc2d73cf5ee6791a0cee8c409dcdb9756b448..527638168bec1a25bf89ab13771b9541b1504713 100644 (file)
@@ -2259,6 +2259,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);
        }