Skip to content
  • Jeff King's avatar
    quote: provide sq_dequote_to_argv_array · 37e8161a
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This is similar to sq_dequote_to_argv, but more convenient
    if you have an argv_array. It's tempting to just feed the
    components of the argv_array to sq_dequote_to_argv instead,
    but:
    
      1. It wouldn't maintain the NULL-termination invariant
         of argv_array.
    
      2. It doesn't match the memory ownership policy of
         argv_array (in which each component is free-able, not a
         pointer into a separate buffer).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    37e8161a