merge(3p/git): Merge git upstream at v2.26.2
This commit is contained in:
commit
5229c9b232
1006 changed files with 149006 additions and 60819 deletions
9
third_party/git/csum-file.h
vendored
9
third_party/git/csum-file.h
vendored
|
|
@ -42,6 +42,15 @@ void hashflush(struct hashfile *f);
|
|||
void crc32_begin(struct hashfile *);
|
||||
uint32_t crc32_end(struct hashfile *);
|
||||
|
||||
/*
|
||||
* Returns the total number of bytes fed to the hashfile so far (including ones
|
||||
* that have not been written out to the descriptor yet).
|
||||
*/
|
||||
static inline off_t hashfile_total(struct hashfile *f)
|
||||
{
|
||||
return f->total + f->offset;
|
||||
}
|
||||
|
||||
static inline void hashwrite_u8(struct hashfile *f, uint8_t data)
|
||||
{
|
||||
hashwrite(f, &data, sizeof(data));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue