Skip to content
  • Jens Lehmann's avatar
    git status: Show detailed dirty status of submodules in long format · 9297f77e
    Jens Lehmann authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Since 1.7.0 there are three reasons a submodule is considered modified
    against the work tree: It contains new commits, modified content or
    untracked content. Lets show all reasons in the long format of git status,
    so the user can better asses the nature of the modification. This change
    does not affect the short and porcelain formats.
    
    Two new members are added to "struct wt_status_change_data" to store the
    information gathered by run_diff_files(). wt-status.c uses the new flag
    DIFF_OPT_DIRTY_SUBMODULES to tell diff-lib.c it wants to get detailed
    dirty information about submodules.
    
    A hint line for submodules is printed in the dirty header when dirty
    submodules are present.
    
    Signed-off-by: default avatarJens Lehmann <Jens.Lehmann@web.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9297f77e