]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Always use struct pack_header for pack header in fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 18 Jan 2007 16:26:06 +0000 (11:26 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 18 Jan 2007 16:26:06 +0000 (11:26 -0500)
commit566f44252b00003d1f4e7baaaf709d74bf73770f
treea3502cb54ded9a27954cb3d895a86770ab56994d
parent69e74e7412603dd536695c3d6a397673e8ae2bd2
Always use struct pack_header for pack header in fast-import.

Previously we were using 'unsigned int' to update the hdr_entries
field of the pack header after the file had been completed and
was being hashed.  This may not be 32 bits on all platforms.
Instead we want to always uint32_t.

I'm actually cheating here by just using the pack_header like the
rest of Git and letting the struct definition declare the correct
type.  Right now that field is still 'unsigned int' (wrong) but a
pending change submitted by Simon 'corecode' Schubert changes it
to uint32_t.  After that change is merged in fast-import will do
the right thing all of the time.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c