aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
AgeCommit message (Expand)AuthorFilesLines
2009-01-28add -u: do not fail to resolve a path as deletedJunio C Hamano1-0/+20
2008-12-17Make 'ce_compare_link()' use the new 'strbuf_readlink()'Linus Torvalds1-14/+8
2008-12-07read-cache.c: typofix in commentJunio C Hamano1-1/+1
2008-11-30git add --intent-to-add: do not let an empty blob be committed by accidentJunio C Hamano1-0/+8
2008-11-28git add --intent-to-add: fix removal of cached emptinessJunio C Hamano1-0/+2
2008-11-28Merge branch 'nd/narrow' (early part) into jc/add-i-t-aJunio C Hamano1-10/+41
2008-11-12Merge branch 'maint'Junio C Hamano1-0/+5
2008-11-12checkout: Fix "initial checkout" detectionJunio C Hamano1-0/+5
2008-11-02Merge branch 'jk/maint-ls-files-other' into maintJunio C Hamano1-0/+28
2008-10-22rm: loosen safety valve for empty filesJeff King1-1/+1
2008-10-21Merge branch 'jk/fix-ls-files-other'Junio C Hamano1-0/+27
2008-10-21Merge branch 'jc/maint-reset-remove-unmerged-new'Junio C Hamano1-13/+18
2008-10-18reset --hard/read-tree --reset -u: remove unmerged new pathsJunio C Hamano1-13/+18
2008-10-17Merge branch 'jk/maint-ls-files-other' into jk/fix-ls-files-otherJunio C Hamano1-0/+27
2008-10-17refactor handling of "other" files in ls-files and statusJeff King1-0/+28
2008-10-12Extend index to save more flagsNguyễn Thái Ngọc Duy1-10/+41
2008-10-12Replace calls to strbuf_init(&foo, 0) with STRBUF_INIT initializerBrandon Casey1-2/+1
2008-10-12print an error message for invalid pathDmitry Potapov1-2/+4
2008-10-09Merge branch 'jc/add-ita'Shawn O. Pearce1-5/+24
2008-10-02fix openssl headers conflicting with custom SHA1 implementationsNicolas Pitre1-14/+14
2008-09-18Merge branch 'jc/maint-name-hash-clear' into maintJunio C Hamano1-0/+1
2008-09-16Merge branch 'jc/maint-name-hash-clear'Junio C Hamano1-0/+1
2008-08-31git-add --intent-to-add (-N)Junio C Hamano1-5/+24
2008-08-27Merge branch 'jc/add-addremove'Junio C Hamano1-0/+61
2008-08-23Merge branch 'maint'Junio C Hamano1-1/+3
2008-08-23unpack_trees(): protect the handcrafted in-core index from read_cache()Junio C Hamano1-1/+3
2008-08-23discard_cache: reset lazy name_hash bitJunio C Hamano1-0/+1
2008-08-17index: future proof for "extended" index entriesJunio C Hamano1-0/+4
2008-07-30Teach gitlinks to ie_modified() and ce_modified_check_fs()Junio C Hamano1-5/+22
2008-07-28Make use of stat.ctime configurableAlex Riesen1-1/+1
2008-07-27git-mv: Keep moved index entries inactPetr Baudis1-0/+16
2008-07-25builtin-add.c: restructure the code for maintainabilityJunio C Hamano1-0/+61
2008-07-20"needs update" considered harmfulJunio C Hamano1-1/+4
2008-07-16read-cache.c: typofixJunio C Hamano1-1/+1
2008-06-30Move read_cache_unmerged() to read-cache.cMiklos Vajna1-0/+31
2008-06-22Merge branch 'lt/racy-empty'Junio C Hamano1-0/+16
2008-06-19racy-git: an empty blob has a fixed object nameLinus Torvalds1-0/+16
2008-05-31Add shortcut in refresh_cache_ent() for marked entries.Marius Storm-Olsen1-0/+9
2008-05-25Merge branch 'jc/add-n-u'Junio C Hamano1-6/+17
2008-05-25Merge branch 'js/ignore-submodule'Junio C Hamano1-0/+4
2008-05-21"git-add -n -u" should not add but just reportJunio C Hamano1-6/+17
2008-05-15Teach update-index about --ignore-submodulesJohannes Schindelin1-0/+4
2008-05-12Make the exit code of add_file_to_index actually usefulAlex Riesen1-3/+3
2008-05-10Avoid some unnecessary lstat() callsLinus Torvalds1-12/+17
2008-05-10Merge branch 'py/diff-submodule'Junio C Hamano1-1/+2
2008-05-10Merge branch 'lt/case-insensitive'Junio C Hamano1-70/+44
2008-05-04is_racy_timestamp(): do not check timestamp for gitlinksJunio C Hamano1-1/+2
2008-04-12write_index(): optimize ce_smudge_racily_clean_entry() calls with CE_UPTODATEJunio C Hamano1-1/+1
2008-04-09Make git-add behave more sensibly in a case-insensitive environmentLinus Torvalds1-1/+36
2008-04-09When adding files to the index, add support for case-independent matchesLinus Torvalds1-7/+5
2008-04-09Move name hashing functions into a file of its ownLinus Torvalds1-62/+3
2008-03-09Add 'const' where appropriate to index handling functionsLinus Torvalds1-6/+6
2008-03-09Add 'df_name_compare()' helper functionLinus Torvalds1-0/+35
2008-02-27Merge branch 'db/checkout'Junio C Hamano1-0/+10
2008-02-22Name hash fixups: export (and rename) remove_hash_entryLinus Torvalds1-16/+2
2008-02-22Fix name re-hashing semanticsLinus Torvalds1-5/+9
2008-02-09Library function to check for unmerged index entriesDaniel Barkalow1-0/+10
2008-01-22lazy index hashingJunio C Hamano1-3/+23
2008-01-22Create pathname-based hash-table lookup into indexLinus Torvalds1-10/+88
2008-01-22read-cache.c: introduce is_racy_timestamp() helperJunio C Hamano1-5/+8
2008-01-22read-cache.c: fix a couple more CE_REMOVE conversionJunio C Hamano1-3/+4
2008-01-21Avoid running lstat(2) on the same cache entry.Junio C Hamano1-1/+15
2008-01-21index: be careful when handling long namesJunio C Hamano1-1/+11
2008-01-21Make on-disk index representation separate from in-core oneLinus Torvalds1-82/+118
2007-11-14Merge branch 'jc/maint-add-sync-stat'Junio C Hamano1-17/+31
2007-11-10git-add: make the entry stat-clean after re-adding the same contentsJunio C Hamano1-1/+2
2007-11-10ce_match_stat, run_diff_files: use symbolic constants for readabilityJunio C Hamano1-17/+30
2007-10-18Merge branch 'maint'Shawn O. Pearce1-0/+2
2007-10-18git-blame shouldn't crash if run in an unmerged treeLinus Torvalds1-0/+2
2007-09-26Move make_cache_entry() from merge-recursive.c into read-cache.cCarlos Rica1-0/+25
2007-09-26Small cache_tree_write refactor.Pierre Habouzit1-10/+9
2007-09-14Merge branch 'jc/cachetree' into cr/resetJunio C Hamano1-1/+2
2007-09-14Simplify cache APIJunio C Hamano1-1/+2
2007-09-12Move make_cache_entry() from merge-recursive.c into read-cache.cCarlos Rica1-0/+25
2007-08-13git-add: Add support for --refresh option.Alexandre Julliard1-1/+5
2007-08-10Optimize "diff --cached" performance.Junio C Hamano1-2/+18
2007-07-30add_file_to_index: skip rehashing if the cached stat already matchesJunio C Hamano1-1/+10
2007-07-01git add: respect core.filemode with unmerged entriesJohannes Schindelin1-1/+29
2007-06-07War on whitespaceJunio C Hamano1-5/+5
2007-05-21rename dirlink to gitlink.Martin Waitz1-3/+3
2007-04-25read_cache_from(): small simplificationLuiz Fernando N. Capitulino1-9/+8
2007-04-22Make read-cache.c "the_index" free.Junio C Hamano1-109/+128
2007-04-22Move index-related variables into a structure.Junio C Hamano1-8/+4
2007-04-14Fix gitlink index entry filesystem matchingLinus Torvalds1-4/+4
2007-04-11Teach directory traversal about subprojectsLinus Torvalds1-0/+4
2007-04-11Fix thinko in subproject entry sortingLinus Torvalds1-2/+2
2007-04-10Teach core object handling functions about gitlinksLinus Torvalds1-4/+31
2007-04-07Merge branch 'jc/read-tree-df' (early part)Junio C Hamano1-9/+31
2007-04-05Rename add_file_to_index() to add_file_to_cache()Junio C Hamano1-1/+1
2007-04-05Propagate cache error internal to refresh_cache() via parameter.Junio C Hamano1-6/+13
2007-04-05Fix bogus error message from merge-recursive error pathJunio C Hamano1-1/+1
2007-04-04add_cache_entry(): removal of file foo does not conflict with foo/barJunio C Hamano1-9/+31
2007-03-07Cast 64 bit off_t to 32 bit size_tShawn O. Pearce1-3/+3
2007-03-02Add core.symlinks to mark filesystems that do not support symbolic links.Johannes Sixt1-4/+6
2007-02-28index_fd(): pass optional path parameter as hint for blob conversionJunio C Hamano1-1/+1
2007-02-28index_fd(): use enum object_type instead of type name string.Junio C Hamano1-1/+1
2007-02-27convert object type handling from a string to a numberNicolas Pitre1-2/+2
2007-02-16Do not take mode bits from index after type change.Junio C Hamano1-6/+7
2007-01-11write-cache: do not leak the serialized cache-tree data.Linus Torvalds1-1/+1
2007-01-08short i/o: fix calls to write to use xwrite or write_in_fullAndy Whitcroft1-3/+3
2006-12-29Cleanup read_cache_from error handling.Shawn O. Pearce1-4/+4
2006-12-29Replace mmap with xmmap, better handling MAP_FAILED.Shawn O. Pearce1-1/+1
2006-12-17Fix check_file_directory_conflict().Junio C Hamano1-1/+1
2006-12-17git-add: remove conflicting entry when adding.Junio C Hamano1-1/+1
2006-12-17update-index: make D/F conflict error a bit more verbose.Junio C Hamano1-1/+1
2006-11-22trust-executable-bit: fix breakage for symlinksJunio C Hamano1-3/+3
2006-11-18sparse fix: non-ANSI function declarationRene Scharfe1-1/+1
2006-09-26Ignore executable bit when adding files if filemode=0.Shawn Pearce1-1/+3
2006-08-27Merge branch 'js/c-merge-recursive'Junio C Hamano1-0/+17
2006-08-17Do not use memcmp(sha1_1, sha1_2, 20) with hardcoded length.David Rientjes1-2/+2
2006-08-16Merge branch 'jc/racy'Junio C Hamano1-59/+10
2006-08-15Remove the "delay writing to avoid runtime penalty of racy-git avoidance"Junio C Hamano1-52/+1
2006-08-15Add check program "git-check-racy"Junio C Hamano1-3/+9
2006-08-15remove unnecessary initializationsDavid Rientjes1-6/+6
2006-08-15avoid nanosleep(2)Junio C Hamano1-5/+1
2006-08-14read-cache.c cleanupDavid Rientjes1-7/+3
2006-08-12Merge branch 'master' into js/c-merge-recursiveJunio C Hamano1-1/+1
2006-08-10discard_cache(): discard index, even if no file was mmap()edJohannes Schindelin1-3/+3
2006-08-08read-cache: tweak racy-git delay logicJunio C Hamano1-21/+52
2006-08-07Racy git: avoid having to be always too carefulJunio C Hamano1-4/+40
2006-07-31Fix double "close()" in ce_compare_dataLinus Torvalds1-1/+1
2006-07-30Merge branch 'js/read-tree' into js/c-merge-recursiveJunio C Hamano1-0/+39
2006-07-26Make git-mv a builtinJohannes Schindelin1-0/+39
2006-07-26Extract helper bits from c-merge-recursive workJohannes Schindelin1-45/+42
2006-07-13Status update on merge-recursive in CJohannes Schindelin1-45/+59
2006-07-10Avoid C99 comments, use old-style C comments instead.Pavel Roskin1-1/+1
2006-06-20Remove all void-pointer arithmetic.Florian Forster1-6/+7
2006-05-28Merge branch 'jc/dirwalk-n-cache-tree' into jc/cache-treeJunio C Hamano1-1/+184
2006-05-28git-write-tree writes garbage on sparc64Dennis Stosberg1-1/+1
2006-05-20Merge branch 'lt/dirwalk' into jc/dirwalk-n-cache-treeJunio C Hamano1-0/+66
2006-05-20Merge branch 'jc/cache-tree' into jc/dirwalk-n-cache-treeJunio C Hamano1-0/+72
2006-05-19Libify the index refresh logicLinus Torvalds1-0/+117
2006-05-18Prevent bogus paths from being added to the index.Linus Torvalds1-0/+66
2006-05-09read-cache.c: use xcalloc() not calloc()Yakov Lerner1-1/+1
2006-04-24index: make the index file format extensible.Junio C Hamano1-26/+79
2006-04-23read-cache/write-cache: optionally return cache checksum SHA1.Junio C Hamano1-8/+27
2006-02-12cache_name_compare() compares name and stage, nothing else.Junio C Hamano1-3/+3
2006-02-08"Assume unchanged" gitJunio C Hamano1-5/+23
2005-12-20ce_smudge_racily_clean_entry: explain why it works.Junio C Hamano1-1/+25
2005-12-20Racy GIT (part #2)Junio C Hamano1-1/+31
2005-12-20Racy GITJunio C Hamano1-54/+86
2005-10-11Use git config file for committer name and email infoLinus Torvalds1-1/+0
2005-10-11Use core.filemode.Junio C Hamano1-4/+8
2005-10-10Add ".git/config" file parserLinus Torvalds1-0/+1
2005-10-01[PATCH] Better error reporting for "git status"Linus Torvalds1-5/+9
2005-09-24Diff clean-up.Junio C Hamano1-1/+1
2005-09-20Show modified files in git-ls-filesJunio C Hamano1-0/+77
2005-09-11[PATCH] Fix buffer overflow in ce_flush().Qingning Huo1-0/+7
2005-08-16[PATCH] Improve handling of "." and ".." in git-diff-*Linus Torvalds1-0/+2
2005-07-29[PATCH] mmap error handlingPavel Roskin1-2/+2
2005-07-14Make "ce_match_path()" a generic helper functionLinus Torvalds1-0/+24
2005-06-25[PATCH] Fix oversimplified optimization for add_cache_entry().Junio C Hamano1-11/+21
2005-06-18read-cache.c: remove stray debugging printfLinus Torvalds1-1/+0
2005-06-18Re-implement "check_file_directory_conflict()"Linus Torvalds1-89/+88
2005-06-10[PATCH] Bugfix: read-cache.c:write_cache() misrecords number of entries.Junio C Hamano1-2/+6
2005-06-09git-read-tree: remove deleted files in the working directoryLinus Torvalds1-0/+2
2005-06-07[PATCH] Use ntohs instead of htons to convert ce_flags to host byte orderTimo Hirvonen1-5/+5
2005-05-27[PATCH] check_file_directory_conflict path fixDavid Meybohm1-1/+3
2005-05-22Don't care about st_dev in the index fileLinus Torvalds1-4/+14
2005-05-22Include file cleanups..Linus Torvalds1-1/+0
2005-05-20Introduce "base_name_compare()" helper functionLinus Torvalds1-0/+19
2005-05-19[PATCH] Implement git-checkout-cache -u to update stat information in the cache.Junio C Hamano1-0/+20
2005-05-18[PATCH] Kill a bunch of pointer sign warnings for gcc4Brian Gerst1-1/+1
2005-05-15Rename some more cache-related functionsBrad Roberts1-7/+7
2005-05-15Rename cache_match_stat() to ce_match_stat()Brad Roberts1-1/+1
2005-05-08A stylistic fix to read-cache.cJunio C Hamano1-1/+1
2005-05-07Add git-update-cache --replace option.Junio C Hamano1-15/+39
2005-05-07git-update-cache refuses to add a file where a directory is registed.Junio C Hamano1-0/+85
2005-05-06[PATCH] Do not initialize sha1_file_directory by hand.Junio C Hamano1-5/+0
2005-05-06Revert bogus optimization that avoids index file writesLinus Torvalds1-1/+4
2005-05-06[PATCH] fix compare symlink against readlink not dataKay Sievers1-3/+3
2005-05-05[PATCH] git and symlinks as tracked contentKay Sievers1-0/+10
2005-04-26Allow writing to the private index file mapping.Linus Torvalds1-1/+1
2005-04-26[PATCH] introduce xmalloc and xreallocChristopher Li1-1/+1
2005-04-22New "diff-cache" implementation.Linus Torvalds1-2/+2
2005-04-21Add support for a "GIT_INDEX_FILE" environment variable.Linus Torvalds1-1/+1
2005-04-21Fix NSEC compile problem, and properly parse the rev-tree cmd line.Linus Torvalds1-2/+2
2005-04-20Make the sha1 of the index file go at the very end of the file.Linus Torvalds1-23/+21
2005-04-20Speed up index file writing by chunking it nicely.Linus Torvalds1-4/+39
2005-04-18Split up read-cache.c into more logical clumps.Linus Torvalds1-270/+0
2005-04-18[PATCH] fix bug in read-cache.c which loses files when merging a treeJames Bottomley1-1/+0
2005-04-17[PATCH] Fix +x-related show-diff false positivesPetr Baudis1-1/+1
2005-04-17[PATCH] update-cache --remove marks the path merged.Junio C Hamano1-1/+3
2005-04-16Be much more liberal about the file mode bits.Linus Torvalds1-1/+2
2005-04-16When inserting a index entry of stage 0, remove all old unmerged entries.Linus Torvalds1-5/+31
2005-04-15Make cache entry comparison take the new "state" flag into account.Linus Torvalds1-3/+9
2005-04-15Convert the index file reading/writing to use network byte order.Linus Torvalds1-27/+29
2005-04-13Fix read-cache.c collission check logic.Linus Torvalds1-11/+28
2005-04-13[PATCH] Whitespace FixesIngo Molnar1-1/+1
2005-04-13[PATCH] Consolidate the error handlingPetr Baudis1-14/+30
2005-04-13[PATCH] Make nsec checking optionalPetr Baudis1-4/+13
2005-04-13[PATCH] SHA1 naive collision checkingPetr Baudis1-2/+19
2005-04-11Rename ".dircache" directory to ".git"Linus Torvalds1-1/+1
2005-04-11Fix "usage()" to do the missing line termination.Linus Torvalds1-1/+3
2005-04-10Fix off-by-one error in removal of cache entry.Linus Torvalds1-7/+7
2005-04-10Add "-R" flag to "diff-tree", so that it will recursively traverse a tree of ...Linus Torvalds1-4/+4
2005-04-10Make "update-cache" a bit friendlier to use (and harder to mis-use).Linus Torvalds1-3/+10
2005-04-09This implements the new "recursive tree" write-tree.Linus Torvalds1-2/+3
2005-04-09Export "cache_name_compare()" helper function.Linus Torvalds1-1/+1
2005-04-09Make "write_cache()" and friends available as generic routines.Linus Torvalds1-2/+70