diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-07-23 12:09:51 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-07-23 14:30:40 +0200 |
commit | c498232812a34925fe280bd16938ba7ecf2cd6cc (patch) | |
tree | d5aa7006f928b732281c5249282c5e6e44566981 /tests/diff/blob.c | |
parent | c3da9f062d8c202b2a66b289b3570ac9fe6fc02d (diff) | |
download | libgit2-c498232812a34925fe280bd16938ba7ecf2cd6cc.tar.gz |
refs: don't stat so much
In reference_read we stat a file and then call futils which stats it
again. Use git_futils_readbuffer_updated to avoid the extra stat
call. This introduces another parameter which is used to tell the
caller whether the file was read or not.
Modify the callers to take advantage of this new feature. This change
removes ~140 stat calls from the test suite.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'tests/diff/blob.c')
0 files changed, 0 insertions, 0 deletions