Commit 96dd171e34fbb89d5ff5eb320c00db82b9ed3942

Edward Thomson 2015-06-19T08:32:26

diff: preserve original mode in the index When updating the index during a diff, preserve the original mode, which prevents us from dropping the mode to what we have interpreted as on our system (eg, what the working directory claims it to be, which may be a lie on some systems.)