Skip to content
  • SZEDER Gábor's avatar
    rerere: remove duplicated functions · 90056966
    SZEDER Gábor authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Both rerere.c and builtin-rerere.c define the static functions
    rr_path() and has_resolution() the exact same way.  To eliminate this
    code duplication this patch turns the functions in rerere.c
    non-static, and makes builtin-rerere.c use them.  Also, since this
    puts these two functions into the global namespace, rename them to
    rerere_path() and has_rerere_resolution(), respectively, and rename
    their "name" parameter to "hex", because it better reflects what that
    parameter actually is.
    
    Signed-off-by: default avatarSZEDER Gábor <szeder@ira.uka.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    90056966