X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=revision.c;h=b6215cc72c77baa3f72d652e8457d3ace6e5f439;hb=5c9c990341bad6b4087c2dd99d28a6cb910749df;hp=f5771c7898a939e34effb8c757c5a237830075b9;hpb=de2e3b04cd70a22016561547530f980c66807641;p=git.git diff --git a/revision.c b/revision.c index f5771c789..b6215cc72 100644 --- a/revision.c +++ b/revision.c @@ -1106,10 +1106,6 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg revs->edge_hint = 1; } else if (!strcmp(arg, "--unpacked")) { revs->unpacked = 1; - revs->kept_pack_only = 0; - } else if (!strcmp(arg, "--kept-pack-only")) { - revs->unpacked = 1; - revs->kept_pack_only = 1; } else if (!prefixcmp(arg, "--unpacked=")) { die("--unpacked= no longer supported."); } else if (!strcmp(arg, "-r")) { @@ -1679,10 +1675,7 @@ enum commit_action simplify_commit(struct rev_info *revs, struct commit *commit) { if (commit->object.flags & SHOWN) return commit_ignore; - if (revs->unpacked && - (revs->kept_pack_only - ? has_sha1_kept_pack(commit->object.sha1) - : has_sha1_pack(commit->object.sha1))) + if (revs->unpacked && has_sha1_pack(commit->object.sha1)) return commit_ignore; if (revs->show_all) return commit_show;