object: remove "used" field from struct object
The "used" field in struct object is only used by builtin/fsck. Remove that field and modify builtin/fsck to use a flag instead. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
ad2db4030e
commit
092c55d094
2
object.h
2
object.h
@ -38,6 +38,7 @@ struct object_array {
|
||||
* http-push.c: 16-----19
|
||||
* commit.c: 16-----19
|
||||
* sha1_name.c: 20
|
||||
* builtin/fsck.c: 0--3
|
||||
*/
|
||||
#define FLAG_BITS 27
|
||||
|
||||
@ -46,7 +47,6 @@ struct object_array {
|
||||
*/
|
||||
struct object {
|
||||
unsigned parsed : 1;
|
||||
unsigned used : 1;
|
||||
unsigned type : TYPE_BITS;
|
||||
unsigned flags : FLAG_BITS;
|
||||
struct object_id oid;
|
||||
|
Reference in New Issue
Block a user