Skip to content
  • Junio C Hamano's avatar
    get_patch_filename(): split into two functions · d28b5d47
    Junio C Hamano authored
    
    
    The function switched between two operating modes depending on the
    NULL-ness of its two parameters, as a hacky way to share small part
    of implementation, sacrificing cleanliness of the API.
    
    Implement "fmt_output_subject()" function that takes a subject
    string and gives the name for the output file, and on top of it,
    implement "fmt_output_commit()" function that takes a commit and
    gives the name for the output file.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    d28b5d47