diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-04-17 10:52:49 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-04-17 10:52:49 -0500 |
commit | 0da62c5cf094394e7d9a4f7ef0832f8459ab3d40 (patch) | |
tree | 2349b0bbd21468e906afe781f0cacbc7f3374214 /src/commit.c | |
parent | 1f327768c7124494ac9352e1ea5088b3678f4818 (diff) | |
download | libgit2-0da62c5cf094394e7d9a4f7ef0832f8459ab3d40.tar.gz |
checkout: use cache when possible to determine if workdir item is dirty
If the on-disk file has been staged (it's stat data matches the stat data
in the cache) then we need not hash the file to determine whether it
differs from the checkout target; instead we can simply use the oid in
the index.
This prevents recomputing a file's hash unnecessarily, prevents loading
the file (when filtering) and prevents edge cases where filters suggest
that a file is dirty immediately after git writes the file.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions