Stephen Boyd a8f6855f48 format-patch: make --base patch-id output stable
We weren't flushing the context each time we processed a hunk in the
patch-id generation code in diff.c, but we were doing that when we
generated "stable" patch-ids with the 'patch-id' tool. Let's port that
similar logic over from patch-id.c into diff.c so we can get the same
hash when we're generating patch-ids for 'format-patch --base=' types of
command invocations.

Cc: Xiaolong Ye <xiaolong.ye@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-05-08 19:27:43 +09:00
..
2019-02-06 22:05:23 -08:00
2019-04-25 16:41:17 +09:00
2019-04-25 16:41:14 +09:00
2019-02-06 22:05:23 -08:00
2019-01-29 12:47:54 -08:00
2019-04-25 16:41:12 +09:00
2018-10-19 13:34:02 +09:00
2019-03-20 15:16:06 +09:00
2019-04-01 12:51:51 +09:00
2019-02-06 22:05:23 -08:00
2019-02-06 22:05:23 -08:00
2019-03-07 09:59:52 +09:00
2019-01-18 13:49:52 -08:00
2019-03-24 21:35:34 +09:00
2019-01-04 13:33:33 -08:00
2018-05-29 00:28:22 +09:00