• S
    Finish current packfile during fast-import crash handler · 118805b9
    Shawn O. Pearce 提交于
    If fast-import is in the middle of crashing due to a protocol error
    or something like that then it can be very useful to have the mark
    table and all objects up until that point be available for a new
    import to resume from.
    
    Currently we just close the active packfile, unkeep all of our
    newly created packfiles (so they can be deleted), and dump the
    marks table to a temporary file.
    
    We don't attempt to update the refs/tags that the process has in
    memory as much of that data can be found in the crash report and I'm
    not sure it would be the right thing to do under every type of crash.
    Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    118805b9
fast-import.c 61.9 KB