Skip to content
  • Junio C Hamano's avatar
    convert: make it harder to screw up adding a conversion attribute · 3bfba20d
    Junio C Hamano authored
    
    
    The current internal API requires the callers of setup_convert_check() to
    supply the git_attr_check structures (hence they need to know how many to
    allocate), but they grab the same set of attributes for given path.
    
    Define a new convert_attrs() API that fills a higher level information that
    the callers (convert_to_git and convert_to_working_tree) really want, and
    move the common code to interact with the attributes system to it.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3bfba20d