Skip to content
Snippets Groups Projects
Select Git revision
  • dda08052682141e63f5860294a0831eff7ec39e8
  • passt default
  • master
  • pu
  • todo
  • next
  • maint
  • v2.8.0-rc1
  • v2.8.0-rc0
  • v2.7.2
  • v2.7.1
  • v2.7.0
  • v2.6.5
  • v2.7.0-rc3
  • v2.7.0-rc2
  • v2.7.0-rc1
  • v2.7.0-rc0
  • v2.6.4
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.3.10
  • v2.5.4
  • v2.4.10
  • v2.6.0
  • v2.6.0-rc3
  • v2.5.3
27 results

argv-array.c

Blame
  • user avatar
    Jeff King authored and Junio C Hamano committed
    The usual pattern for an argv array is to initialize it,
    push in some strings, and then clear it when done. Very
    occasionally, though, we must do other exotic things with
    the memory, like freeing the list but keeping the strings.
    Let's provide a detach function so that callers can make use
    of our API to build up the array, and then take ownership of
    it.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b992657e
    History
    argv-array.c 1.74 KiB