Skip to content
  • Luke Diamand's avatar
    git-p4: fix P4 label import for unprocessed commits · b43702ac
    Luke Diamand authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    With --detect-labels enabled, git-p4 will try to create tags
    using git fast-import by writing a "tag" clause to the
    fast-import stream.
    
    If the commit that the tag references has not yet actually
    been processed by fast-import, then the tag can't be created
    and git-p4 fails to import the P4 label.
    
    Teach git-p4 to use fast-import "marks" when creating tags
    which reference commits created during the current run of the
    program.
    
    Commits created before the current run are still referenced
    in the old way using a normal git commit.
    
    Signed-off-by: default avatarLuke Diamand <luke@diamand.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b43702ac