Skip to content
  • Duy Nguyen's avatar
    attr: remove index from git_attr_set_direction() · c4500e25
    Duy Nguyen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Since attr checking API now take the index, there's no need to set an
    index in advance with this call. Most call sites are straightforward
    because they either pass the_index or NULL (which defaults back to
    the_index previously). There's only one suspicious call site in
    unpack-trees.c where it sets a different index.
    
    This code in unpack-trees is about to check out entries from the
    new/temporary index after merging is done in it. The attributes will
    be used by entry.c code to do crlf conversion if needed. entry.c now
    respects struct checkout's istate field, and this field is correctly
    set in unpack-trees.c, there should be no regression from this change.
    
    Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    c4500e25