diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-06 16:48:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-06 16:48:43 -0700 |
commit | ee267527aa80807f37caf1d00bcf1b5263945adb (patch) | |
tree | 4176958cd88ae4187b85f1d6bc4b2dd40cd63f28 /cache.h | |
parent | a02ebff6127c5fc981668fb570f0a80f2b7657ca (diff) | |
download | git-ee267527aa80807f37caf1d00bcf1b5263945adb.tar.gz |
Revert bogus optimization that avoids index file writes
It didn't properly mark all cache updates as being dirty, and
causes merge errors due to that. In particular, it didn't notice
when a file was force-removed.
Besides, it was ugly as hell. I've put in place a slightly cleaner
version, but I've not enabled the optimization because I don't
want to be burned again.
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ static inline unsigned int create_ce_mode(unsigned int mode) const char *sha1_file_directory; struct cache_entry **active_cache; -unsigned int active_nr, active_alloc; +unsigned int active_nr, active_alloc, active_cache_changed; #define DB_ENVIRONMENT "SHA1_FILE_DIRECTORY" #define DEFAULT_DB_ENVIRONMENT ".git/objects" |