Merge branch 'tb/rev-list-unpacked-fix'
"git rev-list --unpacked --objects" failed to exclude packed non-commit objects, which has been corrected. * tb/rev-list-unpacked-fix: pack-bitmap: drop --unpacked non-commit objects from results list-objects: drop --unpacked non-commit objects from results
This commit is contained in:
@ -39,6 +39,9 @@ static void show_object(struct traversal_context *ctx,
|
||||
{
|
||||
if (!ctx->show_object)
|
||||
return;
|
||||
if (ctx->revs->unpacked && has_object_pack(&object->oid))
|
||||
return;
|
||||
|
||||
ctx->show_object(object, name, ctx->show_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user