]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/fast-import.c
mem-pool: add convenience functions for strdup and strndup
authorElijah Newren <newren@gmail.com>
Sat, 15 Aug 2020 17:37:55 +0000 (17:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Aug 2020 19:14:37 +0000 (12:14 -0700)
commita762c8c1e1e5b6352f027db80be4ca1c0077403d
treef2ce4542c00e8d27d94a0855edd0c0cc5eb5ae2d
parent2befe97201e1f3175cce557866c5822793624b5a
mem-pool: add convenience functions for strdup and strndup

fast-import had a special mem_pool_strdup() convenience function that I
want to be able to use from the new merge algorithm I am writing.  Move
it from fast-import to mem-pool, and also add a mem_pool_strndup()
while at it that I also want to use.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
mem-pool.c
mem-pool.h