aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/add.c
AgeCommit message (Expand)AuthorFilesLines
12 daysMerge branch 'ps/the-index-is-no-more'Junio C Hamano1-24/+24
2024-04-22add: plug a leak on interactive_addRubén Justo1-3/+6
2024-04-18builtin: stop using `the_index`Patrick Steinhardt1-24/+24
2024-04-15Merge branch 'gt/add-u-commit-i-pathspec-check'Junio C Hamano1-2/+9
2024-04-09Merge branch 'rj/use-adv-if-enabled'Junio C Hamano1-11/+7
2024-04-03builtin/add: error out when passing untracked path with -uGhanshyam Thakkar1-1/+8
2024-04-03revision: optionally record matches with pathspec elementsJunio C Hamano1-2/+2
2024-03-30add: use advise_if_enabled for ADVICE_ADD_EMBEDDED_REPORubén Justo1-3/+3
2024-03-30add: use advise_if_enabled for ADVICE_ADD_EMPTY_PATHSPECRubén Justo1-4/+2
2024-03-30add: use advise_if_enabled for ADVICE_ADD_IGNORED_FILERubén Justo1-4/+2
2024-03-07Merge branch 'eg/add-uflags'Junio C Hamano1-1/+1
2024-02-29add: use unsigned type for collection of bitsEugenio Gigante1-1/+1
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-3/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-3/+0
2023-11-04attr: enable attr pathspec magic for git-add and git-stashJoanna Wang1-3/+4
2023-10-30Merge branch 'ni/die-message-fix-for-git-add'Junio C Hamano1-5/+5
2023-10-17builtin/add.c: clean up die() messagesNaomi Ibe1-5/+5
2023-09-13Merge branch 'jk/unused-post-2.42-part2'Junio C Hamano1-0/+2
2023-09-05parse-options: add more BUG_ON() annotationsJeff King1-0/+2
2023-08-21diff: drop useless return from run_diff_{files,index} functionsJeff King1-2/+1
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-2/+6
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-97/+8
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-2/+3
2023-06-28config: inline git_color_default_configGlen Choo1-1/+4
2023-06-22Merge branch 'ds/add-i-color-configuration-fix'Junio C Hamano1-1/+1
2023-06-21diff.h: remove unnecessary include of oidset.hElijah Newren1-0/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
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-21preload-index.h: move declarations for preload-index.c from elsewhereElijah Newren1-0/+1
2023-06-21read-cache: move shared add/checkout/commit codeElijah Newren1-100/+0
2023-06-21add: modify add_files_to_cache() to avoid globalsElijah Newren1-7/+15
2023-06-12add: check color.ui for interactive addDerrick Stolee1-1/+1
2023-04-11editor: move editor-related functions and declarations into common fileElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on advice.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-06add API: remove run_add_interactive() wrapper functionÆvar Arnfjörð Bjarmason1-27/+4
2023-02-06add: remove "add.interactive.useBuiltin" & Perl "git add--interactive"Ævar Arnfjörð Bjarmason1-43/+23
2022-12-26Merge branch 'jk/unused-post-2.39'Junio C Hamano1-1/+1
2022-12-14Merge branch 'ab/various-leak-fixes'Junio C Hamano1-1/+1
2022-12-13diff: mark unused parameters in callbacksJeff King1-1/+1
2022-11-21built-ins: use free() not UNLEAK() if trivial, rm dead codeÆvar Arnfjörð Bjarmason1-1/+1
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-4/+4
2022-11-21cocci & cache.h: apply variable section of "pending" index-compatibilityÆvar Arnfjörð Bjarmason1-4/+4
2022-11-21cocci & cache.h: remove rarely used "the_index" compat macrosÆvar Arnfjörð Bjarmason1-2/+3
2022-10-30use child_process members "args" and "env" directlyRené Scharfe1-10/+9
2022-06-07Merge branch 'ab/plug-leak-in-revisions'Junio C Hamano1-1/+2
2022-06-03Merge branch 'ns/batch-fsync'Junio C Hamano1-2/+11
2022-05-30Merge branch 'js/use-builtin-add-i'Junio C Hamano1-10/+5
2022-04-13revisions API: have release_revisions() release "prune_data"Ævar Arnfjörð Bjarmason1-1/+0
2022-04-13revisions API users: use release_revisions() for "prune_data" usersÆvar Arnfjörð Bjarmason1-0/+1
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+1
2022-04-06builtin/add: add ODB transaction around add_files_to_cacheNeeraj Singh1-0/+9
2022-04-06bulk-checkin: rebrand plug/unplug APIs as 'odb transactions'Neeraj Singh1-2/+2
2022-01-27add: remove support for `git-legacy-stash`Johannes Schindelin1-14/+0
2022-01-05i18n: turn even more messages into "cannot be used together" onesJean-Noël Avila1-1/+1
2022-01-05i18n: factorize "--foo requires --bar" and the likeJean-Noël Avila1-2/+2
2022-01-05i18n: turn "options are incompatible" into "cannot be used together"Jean-Noël Avila1-4/+4
2021-12-01add -i: default to the built-in implementationJohannes Schindelin1-10/+5
2021-11-25run-command API users: use strvec_pushl(), not argv constructionÆvar Arnfjörð Bjarmason1-5/+2
2021-10-13Merge branch 'ds/add-rm-with-sparse-index'Junio C Hamano1-3/+29
2021-09-28add: update --renormalize to skip sparse pathsDerrick Stolee1-1/+3
2021-09-28add: update --chmod to skip sparse pathsDerrick Stolee1-1/+3
2021-09-28add: implement the --sparse optionDerrick Stolee1-4/+8
2021-09-28add: skip tracked paths outside sparse-checkout coneDerrick Stolee1-0/+4
2021-09-28add: fail when adding an untracked sparse fileDerrick Stolee1-0/+14
2021-09-20Merge branch 'ds/sparse-index-ignored-files'Junio C Hamano1-6/+1
2021-09-10Merge branch 'ab/retire-advice-config'Junio C Hamano1-5/+6
2021-09-08Merge branch 'rs/xopen-reports-open-failures'Junio C Hamano1-3/+1
2021-09-07sparse-checkout: create helper methodsDerrick Stolee1-6/+1
2021-08-25use xopen() to handle fatal open(2) failuresRené Scharfe1-3/+1
2021-08-25advice: remove use of global advice_add_embedded_repoÆvar Arnfjörð Bjarmason1-3/+4
2021-08-25advice: remove read uses of most global `advice_` variablesBen Boeckel1-2/+2
2021-08-24Merge branch 'ds/add-with-sparse-index'Junio C Hamano1-3/+12
2021-08-10Merge branch 'ds/add-with-sparse-index' into ds/sparse-index-ignored-filesJunio C Hamano1-3/+12
2021-07-29add: remove ensure_full_index() with --renormalizeDerrick Stolee1-2/+0
2021-07-29add: ignore outside the sparse-checkout in refresh()Derrick Stolee1-1/+9
2021-07-29add: allow operating on a sparse-only indexDerrick Stolee1-0/+3
2021-07-01dir.[ch]: replace dir_init() with DIR_INITÆvar Arnfjörð Bjarmason1-2/+1
2021-05-14Merge branch 'ow/no-dryrun-in-add-i'Junio C Hamano1-0/+2
2021-05-07Merge branch 'mt/add-rm-in-sparse-checkout'Junio C Hamano1-14/+63
2021-05-07add: die if both --dry-run and --interactive are givenØystein Walle1-0/+2
2021-04-14add: ensure full indexDerrick Stolee1-0/+2
2021-04-08add: warn when asked to update SKIP_WORKTREE entriesMatheus Tavares1-14/+56
2021-04-08pathspec: allow to ignore SKIP_WORKTREE entries on index matchingMatheus Tavares1-2/+4
2021-04-08add: make --chmod and --renormalize honor sparse checkoutsMatheus Tavares1-0/+5
2021-04-08add: include magic part of pathspec on --refresh errorMatheus Tavares1-1/+1
2021-02-24add: propagate --chmod errors to exit statusMatheus Tavares1-4/+6
2021-02-24add: mark --chmod error string for translationMatheus Tavares1-1/+1
2021-02-24add --chmod: don't update index when --dry-run is usedMatheus Tavares1-3/+9
2020-09-30drop unused argc parametersJeff King1-2/+2
2020-09-08add -i: use the built-in version when feature.experimental is setJunio C Hamano1-3/+9
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-2/+2
2020-07-30strvec: rename struct fieldsJeff King1-1/+1
2020-07-28strvec: convert builtin/ callers away from argv_array nameJeff King1-7/+7
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-2/+2
2020-02-14Merge branch 'hw/advice-add-nothing'Junio C Hamano1-2/+8
2020-02-06add: change advice config variables used by the add APIHeba Waly1-4/+8
2020-02-05Merge branch 'js/patch-mode-in-others-in-c'Junio C Hamano1-4/+31
2020-01-15add: use advise function to display hintsHeba Waly1-2/+4
2019-12-25Merge branch 'js/add-p-in-c'Junio C Hamano1-5/+10
2019-12-25Merge branch 'am/pathspec-f-f-checkout'Junio C Hamano1-19/+41
2019-12-21built-in add -p: implement the "worktree" patch modesJohannes Schindelin1-0/+2
2019-12-21built-in add -p: implement the "checkout" patch modesJohannes Schindelin1-2/+3
2019-12-21legacy stash -p: respect the add.interactive.usebuiltin settingJohannes Schindelin1-0/+14
2019-12-21built-in add -p: implement the "stash" and "reset" patch modesJohannes Schindelin1-0/+4
2019-12-21built-in add -p: prepare for patch modes other than "stage"Johannes Schindelin1-2/+8
2019-12-13built-in add -i: start implementing the `patch` functionality in CJohannes Schindelin1-5/+10
2019-12-04add: support the --pathspec-from-file optionAlexandr Miloslavskiy1-4/+26
2019-12-04cmd_add: prepare for next patchAlexandr Miloslavskiy1-17/+17
2019-11-14Start to implement a built-in version of `git add --interactive`Johannes Schindelin1-0/+12
2019-04-10add: error appropriately on repository with no commitsKyle Meyer1-1/+2
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-0/+1
2019-02-05Merge branch 'jk/add-ignore-errors-bit-assignment-fix'Junio C Hamano1-1/+1
2019-01-29Merge branch 'js/add-e-clear-patch-before-stating'Junio C Hamano1-1/+1
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2019-01-17add: use separate ADD_CACHE_RENORMALIZE flagJeff King1-1/+1
2019-01-15add --edit: truncate the patch fileJohannes Schindelin1-1/+1
2018-12-09Indent code with TABsNguyễn Thái Ngọc Duy1-1/+1
2018-11-21Merge branch 'nd/attr-pathspec-fix' into maintJunio C Hamano1-1/+1
2018-11-03add: speed up cmd_add() by utilizing read_cache_preload()Ben Peart1-5/+4
2018-10-19Merge branch 'nd/the-index'Junio C Hamano1-2/+2
2018-09-24Merge branch 'nd/attr-pathspec-fix'Junio C Hamano1-1/+1
2018-09-21revision.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-2/+2
2018-09-21add: do not accept pathspec magic 'attr'Nguyễn Thái Ngọc Duy1-1/+1
2018-08-20Merge branch 'nd/no-the-index'Junio C Hamano1-3/+3
2018-08-17Merge branch 'rs/parse-opt-lithelp'Junio C Hamano1-1/+2
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-3/+3
2018-08-03parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELPRené Scharfe1-3/+2
2018-08-03add, update-index: fix --chmod argument helpRené Scharfe1-1/+3
2018-05-30Merge branch 'ma/lockfile-cleanup'Junio C Hamano1-2/+1
2018-05-10lock_file: move static locks into functionsMartin Ågren1-2/+1
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2018-03-21Merge branch 'ma/skip-writing-unchanged-index'Junio C Hamano1-4/+3
2018-03-01write_locked_index(): add flag to avoid writing unchanged indexMartin Ågren1-4/+3
2018-02-09parse-options: let OPT__FORCE take optional flags argumentNguyễn Thái Ngọc Duy1-1/+1
2017-11-27Merge branch 'tb/add-renormalize'Junio C Hamano1-2/+26
2017-11-17add: introduce "--renormalize"Torsten Bögershausen1-2/+26
2017-11-01diff: make struct diff_flags members lowercaseBrandon Williams1-2/+2
2017-11-01diff: remove DIFF_OPT_SET macroBrandon Williams1-2/+2
2017-10-31add, reset: use DIFF_OPT_SET macro to set a diff flagBrandon Williams1-1/+1
2017-09-08add UNLEAK annotation for reducing leak false positivesJeff King1-0/+2
2017-09-06add: free leaked pathspec after add_files_to_cache()Jeff King1-0/+1
2017-08-26Merge branch 'bw/submodule-config-cleanup'Junio C Hamano1-0/+1
2017-08-22Merge branch 'rj/add-chmod-error-message'Junio C Hamano1-3/+3
2017-08-09builtin/add: add detail to a 'cannot chmod' error messageRamsay Jones1-3/+3
2017-08-02add, reset: ensure submodules can be added or resetBrandon Williams1-0/+1
2017-06-24Merge branch 'jk/warn-add-gitlink'Junio C Hamano1-1/+45
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-15add: warn when adding an embedded repositoryJeff King1-1/+45
2017-05-30Merge branch 'bw/pathspec-sans-the-index'Junio C Hamano1-4/+8
2017-05-12pathspec: convert find_pathspecs_matching_against_index to take an indexBrandon Williams1-2/+2
2017-05-12pathspec: remove PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE flagBrandon Williams1-2/+3
2017-05-10submodule: add die_in_unpopulated_submodule functionBrandon Williams1-0/+3
2017-05-06dir: convert fill_directory to take an indexBrandon Williams1-1/+1
2017-05-06dir: convert is_excluded to take an indexBrandon Williams1-1/+1
2017-05-06dir: convert dir_add* to take an indexBrandon Williams1-1/+2
2016-12-07hold_locked_index(): align error handling with hold_lockfile_for_update()Junio C Hamano1-1/+1
2016-09-15add: modify already added files when --chmod is givenThomas Gummerer1-19/+28
2016-06-07add: add --chmod=+x / --chmod=-x optionsEdward Thomson1-9/+24
2015-10-30Merge branch 'jc/add-u-A-default-to-top'Junio C Hamano1-7/+1
2015-10-24add: simplify -u/-A without pathspecJunio C Hamano1-7/+1
2015-08-12Merge branch 'sb/remove-unused-var-from-builtin-add'Junio C Hamano1-2/+0
2015-07-31add: remove dead codeStefan Beller1-2/+0
2015-06-25Merge branch 'nd/diff-i-t-a'Junio C Hamano1-1/+0
2015-06-23Revert "diff-lib.c: adjust position of i-t-a entries in diff"Junio C Hamano1-1/+0
2015-05-22Merge branch 'jk/add-e-kill-editor'Junio C Hamano1-1/+2
2015-05-12add: check return value of launch_editorJeff King1-1/+2
2015-03-23diff-lib.c: adjust position of i-t-a entries in diffNguyễn Thái Ngọc Duy1-0/+1
2015-01-14standardize usage info string formatAlex Henrie1-1/+1
2014-11-21add: ignore only ignored filesMichael J Gruber1-1/+1
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-0/+1
2014-08-20run-command: introduce CHILD_PROCESS_INITRené Scharfe1-2/+1
2014-06-13read-cache: new API write_locked_index instead of write_index/write_cacheNguyễn Thái Ngọc Duy1-4/+2
2014-03-28Merge branch 'fr/add-interactive-argv-array'Junio C Hamano1-11/+10
2014-03-18add: use struct argv_array in run_add_interactive()Fabian Ruch1-11/+10
2014-03-07Merge branch 'jc/add-2.0-ignore-removal'Junio C Hamano1-57/+12
2014-03-07Merge branch 'jn/add-2.0-u-A-sans-pathspec'Junio C Hamano1-106/+9
2014-02-24pathspec: convert some match_pathspec_depth() to dir_path_match()Nguyễn Thái Ngọc Duy1-2/+1
2014-01-10Merge branch 'nd/add-empty-fix'Junio C Hamano1-1/+1
2013-12-26add: don't complain when adding empty project rootNguyễn Thái Ngọc Duy1-1/+1
2013-12-06Support pathspec magic :(exclude) and its short form :!Nguyễn Thái Ngọc Duy1-1/+4
2013-09-17Merge branch 'fc/trivial'Junio C Hamano1-5/+5
2013-09-09Merge branch 'nd/magic-pathspec'Junio C Hamano1-7/+1
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-88/+78
2013-09-05add: lift the pathspec magic restriction on "add -p"Nguyễn Thái Ngọc Duy1-7/+1
2013-08-30add: trivial style cleanupFelipe Contreras1-5/+5
2013-07-22Merge branch 'mm/color-auto-default'Junio C Hamano1-0/+1
2013-07-19git add -e: Explicitly specify that patch should have no colorAndrew Wong1-0/+1
2013-07-15parse_pathspec: accept :(icase)path syntaxNguyễn Thái Ngọc Duy1-2/+4
2013-07-15pathspec: support :(glob) syntaxNguyễn Thái Ngọc Duy1-2/+7
2013-07-15pathspec: support :(literal) syntax for noglob pathspecNguyễn Thái Ngọc Duy1-1/+1
2013-07-15remove match_pathspec() in favor of match_pathspec_depth()Nguyễn Thái Ngọc Duy1-16/+14
2013-07-15convert add_files_to_cache to take struct pathspecNguyễn Thái Ngọc Duy1-4/+7
2013-07-15convert {read,fill}_directory to take struct pathspecNguyễn Thái Ngọc Duy1-1/+3
2013-07-15convert refresh_index to take struct pathspecNguyễn Thái Ngọc Duy1-8/+7
2013-07-15convert run_add_interactive to use struct pathspecNguyễn Thái Ngọc Duy1-16/+10
2013-07-15add: convert to use parse_pathspecNguyễn Thái Ngọc Duy1-58/+45