]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/string-list-static-init'
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2016 20:38:07 +0000 (13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2016 20:38:08 +0000 (13:38 -0700)
commitb8b6365a8a214f2427f2cf9334fd43ace0be619c
tree983ce79cdb05e7d8612b3240699b9cbf20370a30
parent7e58b8166e6ac191739cf9001e73b2157f3aead5
parent2721ce21e439ee0726dc69073acd7e0d2b2407b3
Merge branch 'jk/string-list-static-init'

Instead of taking advantage of a struct string_list that is
allocated with all NULs happens to be STRING_LIST_INIT_NODUP kind,
initialize them explicitly as such, to document their behaviour
better.

* jk/string-list-static-init:
  use string_list initializer consistently
  blame,shortlog: don't make local option variables static
  interpret-trailers: don't duplicate option strings
  parse_opt_string_list: stop allocating new strings
builtin/apply.c
builtin/blame.c
builtin/log.c
builtin/remote.c
t/helper/test-parse-options.c