Skip to content
  • Ben Peart's avatar
    read-cache: add post-index-change hook · 1956ecd0
    Ben Peart authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Add a post-index-change hook that is invoked after the index is written in
    do_write_locked_index().
    
    This hook is meant primarily for notification, and cannot affect
    the outcome of git commands that trigger the index write.
    
    The hook is passed a flag to indicate whether the working directory was
    updated or not and a flag indicating if a skip-worktree bit could have
    changed.  These flags enable the hook to optimize its response to the
    index change notification.
    
    Signed-off-by: default avatarBen Peart <benpeart@microsoft.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    1956ecd0