summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-04-17 10:52:49 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-04-17 10:52:49 -0500
commit0da62c5cf094394e7d9a4f7ef0832f8459ab3d40 (patch)
tree2349b0bbd21468e906afe781f0cacbc7f3374214 /src/commit.c
parent1f327768c7124494ac9352e1ea5088b3678f4818 (diff)
downloadlibgit2-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