Skip to content
  • Junio C Hamano's avatar
    [PATCH] Rework -B output. · 366175ef
    Junio C Hamano authored
    
    
    Patch for a completely rewritten file detected by the -B flag
    was shown as a pair of creation followed by deletion in earlier
    versions.  This was an misguided attempt to make reviewing such
    a complete rewrite easier, and unnecessarily ended up confusing
    git-apply.  Instead, show the entire contents of old version
    prefixed with '-', followed by the entire contents of new
    version prefixed with '+'.  This gives the same easy-to-review
    for human consumer while keeping it a single, regular
    modification patch for machine consumption, something that even
    GNU patch can grok.
    
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    366175ef