]> git.proxmox.com Git - libgit2.git/commit
Only write index if updated when passing GIT_DIFF_UPDATE_INDEX
authorPierre-Olivier Latour <pol@mac.com>
Sat, 6 Jun 2015 01:26:49 +0000 (18:26 -0700)
committerEdward Thomson <ethomson@edwardthomson.com>
Fri, 26 Jun 2015 06:00:21 +0000 (02:00 -0400)
commitc2e1b0581ada8453447bdeaacca92d972d83b1a8
treea0fa85c94a4adad6623f67562a92d95d80295466
parent619423f238b2c782173d1cf83864cbd1219ab6a7
Only write index if updated when passing GIT_DIFF_UPDATE_INDEX

When diffing the index with the workdir and GIT_DIFF_UPDATE_INDEX has been passed,
the previous implementation was always writing the index to disk even if it wasn't
modified.
src/diff.c
src/diff.h