Files
git/builtin
John Cai cfc5cf428b receive-pack.c: consolidate find header logic
There are two functions that have very similar logic of finding a header
value. find_commit_header, and find_header. We can conslidate the logic
by introducing a new function find_header_mem, which is equivalent to
find_commit_header except it takes a len parameter that determines how
many bytes will be read. find_commit_header and find_header can then both
call find_header_mem.

This reduces duplicate logic, as the logic for finding header values
can now all live in one place.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-01-06 13:17:20 -08:00
..
2021-10-13 15:15:57 -07:00
2021-12-21 15:03:17 -08:00
2021-12-15 09:39:47 -08:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2021-02-25 16:43:30 -08:00
2021-12-06 09:55:06 -08:00
2021-11-10 15:01:20 -08:00
2021-10-23 10:45:25 -07:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2021-12-15 09:39:55 -08:00
2021-12-10 14:35:10 -08:00
2021-12-10 14:35:12 -08:00
2021-12-02 11:14:07 -08:00
2021-11-03 13:25:36 -07:00