diff options
| author | René Scharfe <l.s.r@web.de> | 2020-11-12 13:20:19 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-11-12 09:40:06 -0800 |
| commit | 54273d1042b7a7e9a5635ccf15363eec819cb951 (patch) | |
| tree | 146d60f4db4a74b8bf564da41f7d627e1ed2bacb /t/t4013/diff.diff_initial..side | |
| parent | Git 2.29.2 (diff) | |
| download | git-54273d1042b7a7e9a5635ccf15363eec819cb951.tar.gz git-54273d1042b7a7e9a5635ccf15363eec819cb951.zip | |
csum-file: add hashwrite_be64()
Add a helper function for hashing and writing 64-bit integers in network
byte order. It returns the number of written bytes. This simplifies
callers that keep track of the file offset, even though this number is a
constant.
Suggested-by: Derrick Stolee <dstolee@microsoft.com>
Original-patch-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
