author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 16 Jan 2007 09:55:41 +0000 (04:55 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 16 Jan 2007 09:55:41 +0000 (04:55 -0500) | ||
commit | a7ddc48765ff2e4f6601ea146cba4283a342e0b1 | |
tree | e797d1371e635c6fe55e2ec055c00b469f694c4c | tree | snapshot |
parent | eec11c24840bfc5293a80fed3c3b1e5bc10ac453 | commit | diff |
Correct object_count type and stat output in fast-import.
Since object_count is limited to 'unsigned long' (really an
unsigned 32 bit integer value) by the pack file format we may as
well use exactly that type here in fast-import for that counter.
An earlier change by me incorrectly made it uintmax_t.
But since object_count is a counter for the current packfile only,
we don't want to output its value at the end. Instead we should
sum up the individual type counters and report that total, as that
will cover all of the packfiles.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Since object_count is limited to 'unsigned long' (really an
unsigned 32 bit integer value) by the pack file format we may as
well use exactly that type here in fast-import for that counter.
An earlier change by me incorrectly made it uintmax_t.
But since object_count is a counter for the current packfile only,
we don't want to output its value at the end. Instead we should
sum up the individual type counters and report that total, as that
will cover all of the packfiles.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c | diff | blob | history |