Edward Thomson
89d403cce2
win32: enable p_utimes
for readonly files
...
Instead of failing to set the timestamp of a read-only file (like any
object file), set it writable temporarily to update the timestamp.
2017-04-05 11:04:29 +01:00
Edward Thomson
52d03f37f7
git_commit_create: freshen tree objects in commit
...
Freshen the tree object that a commit points to during commit time.
2017-03-03 14:12:00 +00:00
Edward Thomson
27051d4e31
odb: only freshen pack files every 2 seconds
...
Since writing multiple objects may all already exist in a single
packfile, avoid freshening that packfile repeatedly in a tight loop.
Instead, only freshen pack files every 2 seconds.
2016-08-04 15:12:04 -04:00
Edward Thomson
8f09a98e18
odb: freshen existing objects when writing
...
When writing an object, we calculate its OID and see if it exists in the
object database. If it does, we need to freshen the file that contains
it.
2016-08-04 15:12:04 -04:00