Merge branch 'jk/read-commit-buffer-data-after-free'
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2013 18:25:18 +0000 (10:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2013 18:25:18 +0000 (10:25 -0800)
commitd5365b43274779246665416caf1a51af5a29f776
tree4964cb7640ffec8458d3a56815d0d4c21369f1f6
parent27d46a70724ef5e087863c3db35eb7ca9c084c2c
parentbe5c9fb9049ed470e7005f159bb923a5f4de1309
Merge branch 'jk/read-commit-buffer-data-after-free'

Clarify the ownership rule for commit->buffer field, which some
callers incorrectly accessed without making sure it is populated.

* jk/read-commit-buffer-data-after-free:
  logmsg_reencode: lazily load missing commit buffers
  logmsg_reencode: never return NULL
  commit: drop useless xstrdup of commit message
builtin/commit.c
commit.h