Skip to content
  • Junio C Hamano's avatar
    cache.h: move remote/connect API out of it · 47a59185
    Junio C Hamano authored
    
    
    The definition of "struct ref" in "cache.h", a header file so
    central to the system, always confused me.  This structure is not
    about the local ref used by sha1-name API to name local objects.
    
    It is what refspecs are expanded into, after finding out what refs
    the other side has, to define what refs are updated after object
    transfer succeeds to what values.  It belongs to "remote.h" together
    with "struct refspec".
    
    While we are at it, also move the types and functions related to the
    Git transport connection to a new header file connect.h
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    47a59185