Skip to content
  • Junio C Hamano's avatar
    send-pack: refactor inspecting and resetting status and sending commands · b783aa71
    Junio C Hamano authored
    
    
    The main loop over remote_refs list inspects the ref status
    to see if we need to generate pack data (i.e. a delete-only push
    does not need to send any additional data), resets it to "expecting
    the status report" state, and formats the actual update commands
    to be sent.
    
    Split the former two out of the main loop, as it will become
    conditional in later steps.
    
    Besides, we should have code that does real thing here, before the
    "Finally, tell the other end!" part ;-)
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b783aa71