aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/update-index.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-18builtin: stop using `the_index`Patrick Steinhardt1-61/+61
2023-10-02Merge branch 'jc/unresolve-removal'Junio C Hamano1-86/+12
2023-09-20Merge branch 'jc/update-index-show-index-version'Junio C Hamano1-6/+13
2023-09-12update-index: add --show-index-versionJunio C Hamano1-6/+13
2023-09-05parse-options: mark unused "opt" parameter in callbacksJeff King1-2/+2
2023-07-31checkout: allow "checkout -m path" to unmerge removed pathsJunio C Hamano1-1/+1
2023-07-31update-index: remove stale fallback code for "--unresolve"Junio C Hamano1-102/+12
2023-07-31update-index: use unmerge_index_entry() to support removalJunio C Hamano1-16/+22
2023-07-31update-index: do not read HEAD and MERGE_HEAD unconditionallyJunio C Hamano1-18/+28
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-06-21sparse-index.h: move declarations for sparse-index.c from cache.hElijah Newren1-0/+1
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+2
2023-04-24symlinks.h: move declarations for symlinks.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren1-0/+1
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-10cocci & cache.h: apply pending "index_cache_pos" ruleÆvar Arnfjörð Bjarmason1-2/+2
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-9/+10
2022-11-21cocci & cache.h: apply variable section of "pending" index-compatibilityÆvar Arnfjörð Bjarmason1-23/+23
2022-11-21cocci & cache.h: apply a selection of "pending" index-compatibilityÆvar Arnfjörð Bjarmason1-11/+11
2022-11-21cocci & cache.h: remove rarely used "the_index" compat macrosÆvar Arnfjörð Bjarmason1-2/+2
2022-10-17update-index: drop unused argc from do_reupdate()Jeff King1-3/+3
2022-06-10Merge branch 'jh/builtin-fsmonitor-part3'Junio C Hamano1-0/+16
2022-06-03Merge branch 'ns/batch-fsync'Junio C Hamano1-0/+20
2022-05-26fsmonitor-settings: bare repos are incompatible with FSMonitorJeff Hostetler1-0/+16
2022-04-06update-index: use the bulk-checkin infrastructureNeeraj Singh1-0/+20
2022-03-25fsmonitor: config settings are repository-specificJeff Hostetler1-2/+5
2022-02-17Merge branch 'vd/sparse-clean-etc'Junio C Hamano1-3/+14
2022-01-13update-index: reduce scope of index expansion in do_reupdateVictoria Dye1-3/+11
2022-01-13update-index: integrate with sparse indexVictoria Dye1-0/+3
2022-01-07update-index: refresh should rewrite index in case of racy timestampsMarc Strapetz1-0/+11
2021-08-25use xopen() to handle fatal open(2) failuresRené Scharfe1-3/+1
2021-04-14update-index: ensure full indexDerrick Stolee1-0/+2
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-8/+8
2019-11-10Merge branch 'js/update-index-ignore-removal-for-skip-worktree'Junio C Hamano1-1/+5
2019-11-02update-index: optionally leave skip-worktree entries aloneJohannes Schindelin1-1/+5
2019-08-13repo-settings: parse core.untrackedCacheDerrick Stolee1-2/+4
2019-06-27tree-walk.c: remove the_repo from get_tree_entry()Nguyễn Thái Ngọc Duy1-1/+1
2019-05-28fill_stat_cache_info(): prepare for an fsmonitor fixJohannes Schindelin1-1/+1
2019-05-09Merge branch 'en/merge-directory-renames'Junio C Hamano1-1/+1
2019-04-25Merge branch 'jk/unused-params-even-more'Junio C Hamano1-3/+2
2019-04-25Merge branch 'bp/post-index-change-hook'Junio C Hamano1-0/+2
2019-04-08Use 'unsigned short' for mode, like diff_filespec doesElijah Newren1-1/+1
2019-03-20update-index: drop unused prefix_length parameter from do_reupdate()Jeff King1-3/+2
2019-03-07Merge branch 'nd/diff-parseopt'Junio C Hamano1-15/+26
2019-02-15read-cache: add post-index-change hookBen Peart1-0/+2
2019-01-27parse-options: allow ll_callback with OPTION_CALLBACKNguyễn Thái Ngọc Duy1-5/+15
2019-01-27parse-options: avoid magic return codesNguyễn Thái Ngọc Duy1-10/+10
2019-01-27parse-options: stop abusing 'callback' for lowlevel callbacksNguyễn Thái Ngọc Duy1-5/+6
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2018-12-15Merge branch 'nd/show-gitcomp-compilation-fix' into maintJunio C Hamano1-0/+2
2018-12-12parse-options: fix SunCC compiler warningNguyễn Thái Ngọc Duy1-0/+2
2018-11-18Merge branch 'jk/unused-parameter-fixes'Junio C Hamano1-2/+19
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-2/+19
2018-11-06refresh_index: remove unnecessary calls to preload_index()Ben Peart1-1/+1
2018-10-19Merge branch 'nd/the-index'Junio C Hamano1-1/+1
2018-09-21sha1-file.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-2/+2
2018-08-20Merge branch 'nd/no-the-index'Junio C Hamano1-1/+1
2018-08-17Merge branch 'rs/parse-opt-lithelp'Junio C Hamano1-2/+2
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-1/+1
2018-08-03parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELPRené Scharfe1-1/+1
2018-08-03add, update-index: fix --chmod argument helpRené Scharfe1-1/+1
2018-08-02Merge branch 'jm/cache-entry-from-mem-pool'Junio C Hamano1-15/+11
2018-07-16builtin/update-index: simplify parsing of cacheinfobrian m. carlson1-2/+3
2018-07-16builtin/update-index: convert to using the_hash_algobrian m. carlson1-4/+5
2018-07-03block alloc: add lifecycle APIs for cache_entry structsJameson Miller1-15/+11
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-1/+1
2018-05-29Sync with Git 2.17.1Junio C Hamano1-11/+21
2018-05-22Sync with Git 2.16.4Junio C Hamano1-11/+21
2018-05-22Sync with Git 2.15.2Junio C Hamano1-11/+20
2018-05-22Sync with Git 2.14.4Junio C Hamano1-11/+20
2018-05-22Sync with Git 2.13.7Junio C Hamano1-11/+20
2018-05-21verify_path: disallow symlinks in .gitmodulesJeff King1-3/+3
2018-05-21update-index: stat updated files earlierJeff King1-8/+17
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2018-04-10Merge branch 'ps/contains-id-error-message'Junio C Hamano1-0/+1
2018-03-22parse-options: do not show usage upon invalid option valuePaul-Sebastian Ungureanu1-0/+1
2018-03-14tree-walk: convert tree entry functions to object_idbrian m. carlson1-1/+1
2017-11-21Merge branch 'bp/fsmonitor'Junio C Hamano1-1/+37
2017-10-16refs: convert resolve_gitlink_ref to struct object_idbrian m. carlson1-2/+2
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-3/+3
2017-10-01update-index: add fsmonitor support to update-indexBen Peart1-1/+32
2017-10-01fsmonitor: teach git to optionally utilize a file system monitor to speed up ...Ben Peart1-0/+2
2017-09-24update-index: add a new --force-write-index optionBen Peart1-1/+4
2017-09-19Merge branch 'jk/leak-checkers'Junio C Hamano1-1/+3
2017-09-06update-index: fix cache entry leak in add_one_file()Jeff King1-1/+3
2017-09-06stop leaking lock structs in some simple casesJeff King1-7/+4
2017-08-20sha1_file: convert index_path to struct object_idPatryk Obara1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13Merge branch 'jc/noent-notdir'Junio C Hamano1-1/+1
2017-05-30treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checkedJunio C Hamano1-1/+1
2017-04-11Merge branch 'cc/untracked'Junio C Hamano1-1/+5
2017-03-30update-index: fix xgetcwd() related memory leakChristian Couder1-1/+5
2017-03-01update-index: warn in case of split-index incoherencyChristian Couder1-1/+10
2017-03-01split-index: add {add,remove}_split_index() functionsChristian Couder1-12/+6
2016-12-07hold_locked_index(): align error handling with hold_lockfile_for_update()Junio C Hamano1-0/+1
2016-09-26Merge branch 'tg/add-chmod+x-fix'Junio C Hamano1-15/+3
2016-09-21Merge branch 'va/i18n'Junio C Hamano1-6/+6
2016-09-15i18n: update-index: mark warnings for translationVasco Almeida1-6/+6
2016-09-15read-cache: introduce chmod_index_entryThomas Gummerer1-14/+2
2016-09-14update-index: add test for chmod flagsThomas Gummerer1-1/+1
2016-09-07builtin/update-index: convert file to struct object_idbrian m. carlson1-30/+31
2016-09-07cache: convert struct cache_entry to use struct object_idbrian m. carlson1-5/+5
2016-07-26die("bug"): report bugs consistentlyJohannes Schindelin1-1/+1
2016-06-02pathspec: rename free_pathspec() to clear_pathspec()Junio C Hamano1-1/+1
2016-05-09builtin/update-index.c: prefer "err" to "errno" in process_lstat_errorNguyễn Thái Ngọc Duy1-1/+1
2016-02-10Merge branch 'jk/options-cleanup'Junio C Hamano1-5/+6
2016-02-10Merge branch 'cc/untracked'Junio C Hamano1-23/+39
2016-02-01give "nbuf" strbuf a more meaningful nameJeff King1-5/+6
2016-01-27config: add core.untrackedCacheChristian Couder1-11/+24
2016-01-25dir: add remove_untracked_cache()Christian Couder1-5/+1
2016-01-25dir: add {new,add}_untracked_cache()Christian Couder1-10/+1
2016-01-25update-index: move 'uc' var declarationChristian Couder1-3/+1
2016-01-25update-index: add untracked cache notificationsChristian Couder1-5/+9
2016-01-25update-index: add --test-untracked-cacheChristian Couder1-0/+5
2016-01-25update-index: use enum for untracked cache optionsChristian Couder1-5/+13
2016-01-15update-index: there are only two possible line terminationsJunio C Hamano1-11/+16
2015-12-29dir: free untracked cache when removing itChristian Couder1-0/+1
2015-05-26Merge branch 'nd/untracked-cache'Junio C Hamano1-0/+188
2015-05-05prefix_path(): unconditionally free results in the callersStefan Beller1-7/+6
2015-03-22update-index: fix a memleakStefan Beller1-0/+1
2015-03-12untracked cache: guard and disable on system changesNguyễn Thái Ngọc Duy1-6/+10
2015-03-12update-index: test the system before enabling untracked cacheNguyễn Thái Ngọc Duy1-0/+168
2015-03-12update-index: manually enable or disable untracked cacheNguyễn Thái Ngọc Duy1-0/+16
2015-01-14standardize usage info string formatAlex Henrie1-1/+1
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-0/+1
2014-10-01unable_to_lock_die(): rename function from unable_to_lock_index_die()Michael Haggerty1-1/+1
2014-07-16Merge branch 'nd/split-index'Junio C Hamano1-7/+26
2014-06-13update-index: new options to enable/disable split index modeNguyễn Thái Ngọc Duy1-0/+18
2014-06-13read-cache: mark updated entries for split indexNguyễn Thái Ngọc Duy1-0/+2
2014-06-13cache-tree: mark istate->cache_changed on cache tree invalidationNguyễn Thái Ngọc Duy1-2/+2
2014-06-13update-index: be specific what part of the index has changedNguyễn Thái Ngọc Duy1-3/+3
2014-06-13read-cache: be specific what part of the index has changedNguyễn Thái Ngọc Duy1-3/+3
2014-06-13read-cache: new API write_locked_index instead of write_index/write_cacheNguyễn Thái Ngọc Duy1-2/+1
2014-06-04update-index: fix segfault with missing --cacheinfo argumentJeff King1-0/+3
2014-03-24update-index: teach --cacheinfo a new syntax "mode,sha1,path"Junio C Hamano1-3/+31
2014-02-27Merge branch 'nd/submodule-pathspec-ending-with-slash'Junio C Hamano1-1/+2
2014-02-24pathspec: convert some match_pathspec_depth() to ce_path_match()Nguyễn Thái Ngọc Duy1-1/+2
2013-11-18read-cache.c: fix memory leaks caused by removed cache entriesKarsten Blees1-1/+4
2013-11-18builtin/update-index.c: cleanup update_oneKarsten Blees1-21/+15
2013-11-18fix 'git update-index --verbose --again' outputKarsten Blees1-1/+1
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-2/+4
2013-07-15convert some get_pathspec() calls to parse_pathspec()Nguyễn Thái Ngọc Duy1-2/+3
2013-07-15move struct pathspec and related functions to pathspec.[ch]Nguyễn Thái Ngọc Duy1-0/+1
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-7/+7
2013-02-23update-index: allow "-h" to also display optionsAntoine Pelisse1-1/+1
2012-11-20Merge branch 'kb/preload-index-more'Junio C Hamano1-0/+1
2012-11-02update-index/diff-index: use core.preloadindex to improve performanceKarsten Blees1-0/+1
2012-08-22i18n: update-index: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-28/+28
2012-07-11Strip namelen out of ce_flags into a ce_namelen fieldThomas Gummerer1-3/+6
2012-06-28Merge branch 'hv/submodule-update-nuke-submodules'Junio C Hamano1-6/+0
2012-06-11update-index: allow overwriting existing submodule index entriesHeiko Voigt1-6/+0
2012-04-04update-index: upgrade/downgrade on-disk index versionJunio C Hamano1-0/+14
2011-06-20plug a few coverity-spotted leaksJim Meyering1-1/+3
2011-05-09index_fd(): turn write_object and format_check arguments into one flagJunio C Hamano1-1/+2
2011-02-03Convert ce_path_match() to use struct pathspecNguyễn Thái Ngọc Duy1-2/+6
2010-12-12Merge branch 'jn/parse-options-extra'Junio C Hamano1-150/+244
2010-12-12Merge branch 'jn/git-cmd-h-bypass-setup'Junio C Hamano1-0/+3
2010-12-07update-index: migrate to parse-options APIJonathan Nieder1-149/+243
2010-10-22update-index -h: show usage even with corrupt indexNguyễn Thái Ngọc Duy1-0/+3
2010-10-08Fix {update,checkout}-index usage stringsŠtěpán Němec1-1/+1
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+788