diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-01-17 02:42:43 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-17 02:42:43 -0500 |
commit | 69e74e7412603dd536695c3d6a397673e8ae2bd2 (patch) | |
tree | 96a3cd45c604d7820c6c189cc048e463b40a6463 /entry.c | |
parent | Declare no-arg functions as (void) in fast-import. (diff) | |
download | tgif-69e74e7412603dd536695c3d6a397673e8ae2bd2.tar.xz |
Correct packfile edge output in fast-import.
Branches are only contained by a packfile if the branch actually
had its most recent commit in that packfile. So new branches are
set to MAX_PACK_ID to ensure they don't cause their commit to list
as part of the first packfile when it closes out if the commit was
actually in existance before fast-import started.
Also corrected the type of last_commit to be umaxint_t to prevent
overflow and wraparound on very large imports. Though that is
highly unlikely to occur as we're talking 4 billion commits, which
no real project has right now.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'entry.c')
0 files changed, 0 insertions, 0 deletions