Skip to content
  • Carlos Rica's avatar
    Fix git-stripspace to process correctly long lines and spaces. · 9690c118
    Carlos Rica authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Now the implementation gets more memory to store completely
    each line before removing trailing spaces, and does it right
    when the last line of the file ends with spaces and no newline
    at the end.
    
    Function stripspace needs again to be non-static in order to call
    it from "builtin-tag.c" and the upcoming "builtin-commit.c".
    A new parameter skip_comments was also added to the stripspace
    function to optionally strips every shell #comment from the input,
    needed for doing this task on those programs.
    
    Signed-off-by: default avatarCarlos Rica <jasampler@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9690c118