Skip to content
  • Pierre Habouzit's avatar
    Rework unquote_c_style to work on a strbuf. · 7fb1011e
    Pierre Habouzit authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    If the gain is not obvious in the diffstat, the resulting code is more
    readable, _and_ in checkout-index/update-index we now reuse the same buffer
    to unquote strings instead of always freeing/mallocing.
    
    This also is more coherent with the next patch that reworks quoting
    functions.
    
    The quoting function is also made more efficient scanning for backslashes
    and treating portions of strings without a backslash at once.
    
    Signed-off-by: default avatarPierre Habouzit <madcoder@debian.org>
    7fb1011e