Skip to content
  • Johannes Schindelin's avatar
    fsck: optionally show more helpful info for broken links · 90cf590f
    Johannes Schindelin authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When reporting broken links between commits/trees/blobs, it would be
    quite helpful at times if the user would be told how the object is
    supposed to be reachable.
    
    With the new --name-objects option, git-fsck will try to do exactly
    that: name the objects in a way that shows how they are reachable.
    
    For example, when some reflog got corrupted and a blob is missing that
    should not be, the user might want to remove the corresponding reflog
    entry. This option helps them find that entry: `git fsck` will now
    report something like this:
    
    	broken link from    tree b5eb6ff...  (refs/stash@{<date>}~37:)
    	              to    blob ec5cf80...
    
    Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    90cf590f