Skip to content
  • Linus Torvalds's avatar
    Fix rev-list when showing objects involving submodules · 481f0ee6
    Linus Torvalds authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The function mark_tree_uninteresting() assumed that the tree entries
    are blob when they are not trees.  This is not so.  Since we do
    not traverse into submodules (yet), the gitlinks should be ignored.
    
    In general, we should try to start moving away from using the
    "S_ISLNK()" like things for internal git state. It was a mistake to
    just assume the numbers all were same across all systems in the first
    place.  This implementation converts to the "object_type", and then
    uses a case statement.
    
    Noticed by Ilari on IRC.
    Test script taken from an earlier version by Dscho.
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    481f0ee6