1
0
mirror of https://github.com/git/git.git synced 2025-03-18 03:06:58 +00:00
Junio C Hamano fdb2a2a600 compat: introduce on_disk_bytes()
Some platforms do not have st_blocks member in "struct stat"; mingw
already emulates it by rounding it up to closest 512-byte blocks (even
though it could overcount when a file has holes).

The reason to use the member is only to figure out how many kilobytes the
files occupy on-disk, so give a helper function in git-compat-util.h to
compute this value.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Johannes Sixt <johannes.sixt@telecom.at>
2008-08-18 22:37:55 -07:00
..
2007-09-06 22:46:00 -07:00
2008-08-18 22:37:55 -07:00
2008-08-18 22:37:55 -07:00
2007-06-07 00:04:01 -07:00
2008-06-22 11:32:45 +02:00