Skip to content
  • Thomas Rast's avatar
    diff_setup_done(): return void · 28452655
    Thomas Rast authored and Junio C Hamano's avatar Junio C Hamano committed
    diff_setup_done() has historically returned an error code, but lost
    the last nonzero return in 943d5b73
    
     (allow diff.renamelimit to be set
    regardless of -M/-C, 2006-08-09).  The callers were in a pretty
    confused state: some actually checked for the return code, and some
    did not.
    
    Let it return void, and patch all callers to take this into account.
    This conveniently also gets rid of a handful of different(!) error
    messages that could never be triggered anyway.
    
    Note that the function can still die().
    
    Signed-off-by: default avatarThomas Rast <trast@student.ethz.ch>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    28452655