Derrick Stolee
cfe83216e4
csum-file: refactor finalize_hashfile() method
...
If we want to use a hashfile on the temporary file for a lockfile, then
we need finalize_hashfile() to fully write the trailing hash but also keep
the file descriptor open.
Do this by adding a new CSUM_HASH_IN_STREAM flag along with a functional
change that checks this flag before writing the checksum to the stream.
This differs from previous behavior since it would be written if either
CSUM_CLOSE or CSUM_FSYNC is provided.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2018-04-02 14:27:30 -07:00
..
2017-11-27 11:06:37 +09:00
2018-02-15 14:55:43 -08:00
2017-10-06 10:07:18 +09:00
2017-11-13 10:51:14 +09:00
2017-11-01 11:51:40 +09:00
2017-12-27 11:16:25 -08:00
2017-12-08 09:52:42 -08:00
2017-11-15 12:04:57 +09:00
2017-10-06 10:07:18 +09:00
2018-02-15 15:18:11 -08:00
2017-10-18 10:19:08 +09:00
2018-02-15 15:18:13 -08:00
2018-01-30 10:42:36 -08:00
2018-02-15 14:55:43 -08:00
2017-11-18 12:31:29 +09:00
2017-08-23 15:12:06 -07:00
2018-02-15 15:18:10 -08:00
2017-10-07 16:27:55 +09:00
2017-12-06 14:49:18 -08:00
2017-11-13 13:20:44 +09:00
2017-10-07 10:20:56 +09:00
2017-12-08 09:16:27 -08:00
2017-12-08 09:58:52 -08:00
2018-02-13 13:39:04 -08:00
2017-12-27 11:16:23 -08:00
2017-10-04 11:35:29 +09:00
2018-02-15 14:55:41 -08:00
2017-12-08 09:52:42 -08:00
2017-09-27 15:45:24 +09:00
2017-12-19 11:33:56 -08:00
2018-01-30 10:42:36 -08:00
2017-09-25 15:24:07 +09:00
2018-04-02 14:27:30 -07:00
2017-09-08 15:43:17 +09:00
2017-08-26 22:55:04 -07:00
2018-01-23 13:16:37 -08:00
2017-11-21 14:07:50 +09:00
2017-11-15 12:14:32 +09:00
2017-11-09 14:31:27 +09:00
2018-01-30 10:42:36 -08:00
2018-01-30 10:42:36 -08:00
2018-01-30 10:42:36 -08:00
2017-12-12 12:35:20 -08:00
2017-10-18 14:19:09 +09:00
2018-01-30 10:42:36 -08:00
2018-04-02 14:27:30 -07:00
2017-08-23 15:12:06 -07:00
2017-08-26 22:55:09 -07:00
2018-02-13 13:39:03 -08:00
2018-02-15 14:55:43 -08:00
2017-10-24 09:57:54 +09:00
2018-02-13 13:39:15 -08:00
2018-01-30 10:42:36 -08:00
2017-11-18 12:31:29 +09:00
2017-09-22 12:49:57 +09:00
2017-11-15 12:14:29 +09:00
2017-12-08 09:52:42 -08:00
2018-01-30 10:42:36 -08:00
2017-09-14 15:17:59 +09:00
2018-02-15 14:55:45 -08:00
2018-03-13 13:35:25 -07:00
2018-01-16 12:16:54 -08:00
2017-12-13 11:15:14 -08:00
2017-12-12 12:35:20 -08:00
2017-09-09 01:57:03 +09:00
2017-12-27 11:16:29 -08:00
2017-10-16 11:05:51 +09:00
2018-01-16 11:29:50 -08:00
2017-11-06 10:31:08 +09:00
2018-01-30 10:42:36 -08:00
2017-09-25 15:24:06 +09:00
2018-02-15 14:55:47 -08:00
2017-11-21 14:07:50 +09:00
2017-11-06 10:31:08 +09:00
2018-02-15 14:55:40 -08:00