aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
AgeCommit message (Expand)AuthorFilesLines
13 daysMerge branch 'jc/optional-path'Junio C Hamano1-1/+2
2025-11-24config: really pretend missing :(optional) value is not thereJunio C Hamano1-0/+1
2025-11-20config: mark otherwise unused function as file-scope staticJunio C Hamano1-1/+1
2025-11-06Merge branch 'dk/parseopt-optional-filename-fixes'Junio C Hamano1-1/+1
2025-11-04config: use boolean type for a simple flagD. Ben Knoble1-1/+1
2025-10-14Merge branch 'jc/optional-path'Junio C Hamano1-2/+14
2025-10-07config: values of pathname type can be prefixed with :(optional)Junio C Hamano1-2/+14
2025-09-18Merge branch 'pw/3.0-commentchar-auto-deprecation'Junio C Hamano1-2/+295
2025-08-26commit: print advice when core.commentString=autoPhillip Wood1-6/+188
2025-08-26config: warn on core.commentString=autoPhillip Wood1-2/+113
2025-08-21Merge branch 'jc/strbuf-split'Junio C Hamano1-13/+10
2025-08-04Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-533/+22
2025-08-02config: do not use strbuf_split()Junio C Hamano1-13/+10
2025-07-31Merge branch 'ps/config-wo-the-repository' into pw/3.0-commentchar-auto-depre...Junio C Hamano1-533/+22
2025-07-28Merge branch 'ac/auto-comment-char-fix'Junio C Hamano1-2/+4
2025-07-24Merge branch 'pw/config-kvi-remove-path'Junio C Hamano1-15/+13
2025-07-23config: fix sign comparison warningsPatrick Steinhardt1-19/+21
2025-07-23config: move Git config parsing into "environment.c"Patrick Steinhardt1-511/+0
2025-07-23config: drop `git_config_set()` wrapperPatrick Steinhardt1-1/+1
2025-07-16config: set comment_line_str to "#" when core.commentChar=autoAyush Chandekar1-2/+4
2025-07-15Merge branch 'ps/object-store'Junio C Hamano1-2/+2
2025-07-15config: remove unneeded struct fieldPhillip Wood1-15/+13
2025-07-07Sync with Git 2.50.1Junio C Hamano1-1/+1
2025-07-01odb: rename `repo_read_object_file()`Patrick Steinhardt1-1/+1
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-06-15Sync with 2.49.1Junio C Hamano1-1/+1
2025-06-12Sync with 2.48.2Junio C Hamano1-1/+1
2025-06-10environment: remove the global variable 'core_preload_index'Ayush Chandekar1-5/+0
2025-05-28Sync with 2.47.3Taylor Blau1-1/+1
2025-05-28Sync with 2.46.4Taylor Blau1-1/+1
2025-05-28Sync with 2.45.4Taylor Blau1-1/+1
2025-05-28Sync with 2.44.4Taylor Blau1-1/+1
2025-05-28Sync with 2.43.7Taylor Blau1-1/+1
2025-05-23config: quote values containing CR characterJustin Tobler1-1/+1
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-04-08Merge branch 'ps/object-wo-the-repository' into ps/object-file-cleanupJunio C Hamano1-5/+0
2025-03-26Merge branch 'ua/some-builtins-wo-the-repository'Junio C Hamano1-0/+4
2025-03-10environment: move access to "core.bigFileThreshold" into repo settingsPatrick Steinhardt1-5/+0
2025-03-07config: teach repo_config to allow `repo` to be NULLUsman Akinyemi1-0/+4
2025-03-06Merge branch 'tz/doc-txt-to-adoc-fixes'Junio C Hamano1-8/+8
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-5/+0
2025-03-03config.c: *.txt -> *.adoc fixesTodd Zullinger1-8/+8
2025-02-28environment: move access to "core.hooksPath" into repo settingsPatrick Steinhardt1-5/+0
2025-01-28git-compat-util: move include of "compat/zlib.h" into "git-zlib.h"Patrick Steinhardt1-0/+1
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+1
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+1
2024-12-04config: make `packed_git_(limit|window_size)` non-global variablesKarthik Nayak1-17/+0
2024-12-04config: make `delta_base_cache_limit` a non-global variableKarthik Nayak1-5/+0
2024-09-24config: fix evaluating "onbranch" with nonexistent git dirPatrick Steinhardt1-6/+9
2024-09-12environment: stop storing "core.notesRef" globallyPatrick Steinhardt1-8/+0
2024-09-12environment: stop storing "core.warnAmbiguousRefs" globallyPatrick Steinhardt1-5/+0
2024-09-12environment: stop storing "core.preferSymlinkRefs" globallyPatrick Steinhardt1-5/+0
2024-09-12environment: stop storing "core.logAllRefUpdates" globallyPatrick Steinhardt1-10/+0
2024-09-12environment: guard state depending on a repositoryPatrick Steinhardt1-0/+2
2024-09-12config: make dependency on repo in `read_early_config()` explicitPatrick Steinhardt1-6/+4
2024-09-12config: document `read_early_config()` and `read_very_early_config()`Patrick Steinhardt1-4/+0
2024-09-12environment: make `get_git_common_dir()` accept a repositoryPatrick Steinhardt1-1/+1
2024-09-12environment: make `get_git_dir()` accept a repositoryPatrick Steinhardt1-1/+3
2024-08-26Merge branch 'ps/maintenance-detach-fix'Junio C Hamano1-2/+3
2024-08-26Merge branch 'tb/config-fixed-value-with-valueless-true' into maint-2.46Junio C Hamano1-1/+1
2024-08-23Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-149/+76
2024-08-23Merge branch 'ps/leakfixes-part-4'Junio C Hamano1-1/+2
2024-08-16config: fix constness of out parameter for `git_config_get_expiry()`Patrick Steinhardt1-2/+2
2024-08-14Merge branch 'tb/config-fixed-value-with-valueless-true'Junio C Hamano1-1/+1
2024-08-14config: fix leaking comment character configPatrick Steinhardt1-1/+2
2024-08-13config: hide functions using `the_repository` by defaultPatrick Steinhardt1-130/+0
2024-08-13config: don't depend on `the_repository` with branch conditionsPatrick Steinhardt1-4/+5
2024-08-13config: don't have setters depend on `the_repository`Patrick Steinhardt1-8/+8
2024-08-13config: pass repo to functions that rename or copy sectionsPatrick Steinhardt1-14/+16
2024-08-13config: pass repo to `git_die_config()`Patrick Steinhardt1-6/+6
2024-08-13config: pass repo to `git_config_get_expiry_in_days()`Patrick Steinhardt1-2/+3
2024-08-13config: pass repo to `git_config_get_expiry()`Patrick Steinhardt1-2/+2
2024-08-13config: pass repo to `git_config_get_max_percent_split_change()`Patrick Steinhardt1-2/+2
2024-08-13config: pass repo to `git_config_get_split_index()`Patrick Steinhardt1-2/+2
2024-08-13config: pass repo to `git_config_get_index_threads()`Patrick Steinhardt1-2/+2
2024-08-13config: expose `repo_config_clear()`Patrick Steinhardt1-1/+1
2024-08-13config: introduce missing setters that take repo as parameterPatrick Steinhardt1-20/+73
2024-08-01config.c: avoid segfault with --fixed-value and valueless configTaylor Blau1-1/+1
2024-07-08Merge branch 'ps/leakfixes-more'Junio C Hamano1-0/+1
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano1-0/+3
2024-06-24Merge branch 'tb/pseudo-merge-reachability-bitmap'Junio C Hamano1-0/+9
2024-06-20Merge branch 'ps/abbrev-length-before-setup-fix'Junio C Hamano1-2/+2
2024-06-17Merge branch 'jc/varargs-attributes'Junio C Hamano1-1/+0
2024-06-14global: introduce `USE_THE_REPOSITORY_VARIABLE` macroPatrick Steinhardt1-0/+3
2024-06-12config: fix segfault when parsing "core.abbrev" without repoPatrick Steinhardt1-2/+2
2024-06-11config: fix leaking "core.notesref" variablePatrick Steinhardt1-0/+1
2024-06-10__attribute__: remove redundant attribute declaration for git_die_config()Junio C Hamano1-1/+0
2024-06-06Merge branch 'ps/leakfixes'Junio C Hamano1-17/+38
2024-06-03Merge branch 'ps/leakfixes' into ps/leakfixes-moreJunio C Hamano1-17/+38
2024-05-30Merge branch 'jc/fix-2.45.1-and-friends-for-maint'Junio C Hamano1-12/+1
2024-05-28Merge branch 'ps/builtin-config-cleanup'Junio C Hamano1-2/+2
2024-05-27config: plug various memory leaksPatrick Steinhardt1-9/+27
2024-05-27config: clarify memory ownership in `git_config_string()`Patrick Steinhardt1-3/+3
2024-05-27convert: refactor code to clarify ownership of check_roundtrip_encodingPatrick Steinhardt1-2/+4
2024-05-27config: clarify memory ownership in `git_config_pathname()`Patrick Steinhardt1-5/+5
2024-05-24Merge branch 'fixes/2.45.1/2.44' into jc/fix-2.45.1-and-friends-for-maintJunio C Hamano1-12/+1
2024-05-24Merge branch 'fixes/2.45.1/2.43' into fixes/2.45.1/2.44Junio C Hamano1-12/+1
2024-05-24Merge branch 'fixes/2.45.1/2.42' into fixes/2.45.1/2.43Junio C Hamano1-12/+1
2024-05-24Merge branch 'fixes/2.45.1/2.41' into fixes/2.45.1/2.42Junio C Hamano1-12/+1
2024-05-24Merge branch 'fixes/2.45.1/2.40' into fixes/2.45.1/2.41Junio C Hamano1-12/+1
2024-05-24Merge branch 'jc/fix-2.45.1-and-friends-for-2.39' into fixes/2.45.1/2.40Junio C Hamano1-12/+1
2024-05-24config: introduce `git_config_double()`Taylor Blau1-0/+9
2024-05-21Revert "core.hooksPath: add some protection while cloning"Johannes Schindelin1-12/+1
2024-05-16Merge branch 'ps/refs-without-the-repository'Junio C Hamano1-1/+2
2024-05-15Merge branch 'ps/config-subcommands'Junio C Hamano1-10/+6
2024-05-15config: make the config source constPatrick Steinhardt1-2/+2
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-1/+2
2024-05-06config: clarify memory ownership when preparing comment stringsPatrick Steinhardt1-10/+6
2024-04-29Sync with 2.44.1Johannes Schindelin1-1/+12
2024-04-19Sync with 2.43.4Johannes Schindelin1-1/+12
2024-04-19Sync with 2.42.2Johannes Schindelin1-1/+12
2024-04-19Sync with 2.41.1Johannes Schindelin1-1/+12
2024-04-19Sync with 2.40.2Johannes Schindelin1-1/+12
2024-04-19Sync with 2.39.4Johannes Schindelin1-1/+12
2024-04-19core.hooksPath: add some protection while cloningJohannes Schindelin1-1/+12
2024-04-15Merge branch 'jc/unleak-core-excludesfile'Junio C Hamano1-1/+3
2024-04-08config: do not leak excludes_fileJunio C Hamano1-1/+3
2024-04-05Merge branch 'jk/core-comment-string'Junio C Hamano1-4/+7
2024-04-05Merge branch 'rs/config-comment'Junio C Hamano1-8/+72
2024-04-01Merge branch 'ds/config-internal-whitespace-fix'Junio C Hamano1-5/+10
2024-03-27config: add core.commentStringJeff King1-3/+4
2024-03-21config: really keep value-internal whitespace verbatimDragan Simic1-4/+9
2024-03-21config: minor addition of whitespaceDragan Simic1-1/+1
2024-03-15config: allow tweaking whitespace between value and commentJunio C Hamano1-11/+58
2024-03-15config: fix --comment formattingJunio C Hamano1-6/+14
2024-03-15config: add --comment option to add a commentRalph Seichter1-8/+17
2024-03-12config: allow multi-byte core.commentCharJeff King1-5/+5
2024-03-12environment: store comment_line_char as a stringJeff King1-1/+1
2024-03-12config: forbid newline as core.commentCharJeff King1-0/+2
2024-02-08Merge branch 'en/header-cleanup' into maint-2.43Junio C Hamano1-3/+0
2024-01-18config: factor out global config file retrievalKristoffer Haugsbakk1-0/+20
2024-01-18config: rename global config functionKristoffer Haugsbakk1-2/+2
2024-01-18config: format newlinesKristoffer Haugsbakk1-2/+0
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-12-09config: use git_config_string() for core.checkRoundTripEncodingJeff King1-6/+2
2023-12-09config: reject bogus values for core.checkstatJeff King1-0/+3
2023-12-09config: handle NULL value when parsing non-boolsJeff King1-0/+8
2023-10-30Merge branch 'jc/attr-tree-config'Junio C Hamano1-0/+16
2023-10-13attr: add attr.tree for setting the treeish to read attributes fromJohn Cai1-0/+16
2023-10-10Merge branch 'cw/prelim-cleanup'Junio C Hamano1-172/+1
2023-09-29parse: separate out parsing functions from config.hCalvin Wan1-179/+1
2023-09-29config: correct bad boolean env value error messageCalvin Wan1-1/+8
2023-08-31add core.maxTreeDepth configJeff King1-0/+5
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-2/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-326/+220
2023-07-06Merge branch 'gc/config-partial-submodule-kvi-fix'Junio C Hamano1-6/+0
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-1/+4
2023-06-28config: pass source to config_parser_event_fn_tGlen Choo1-64/+13
2023-06-28config: add kvi.path, use it to evaluate includesGlen Choo1-21/+19
2023-06-28config.c: remove config_reader from configsetsGlen Choo1-34/+11
2023-06-28config: pass kvi to die_bad_number()Glen Choo1-95/+61
2023-06-28trace2: plumb config kviGlen Choo1-46/+0
2023-06-28config.c: pass ctx with CLI configGlen Choo1-39/+41
2023-06-28config: pass ctx with config filesGlen Choo1-35/+70
2023-06-28config.c: pass ctx in configsetsGlen Choo1-19/+16
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-14/+24
2023-06-26config: don't BUG when both kvi and source are setGlen Choo1-6/+0
2023-06-23Merge branch 'rj/leakfixes'Junio C Hamano1-0/+2
2023-06-22Merge branch 'ds/disable-replace-refs'Junio C Hamano1-5/+0
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21git-compat-util.h: remove unneccessary include of wildmatch.hElijah Newren1-0/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-06-17config: fix a leak in git_config_copy_or_rename_section_in_fileRubén Justo1-0/+1
2023-06-12config: fix a leak in git_config_copy_or_rename_section_in_fileRubén Justo1-0/+1
2023-06-12repository: create read_replace_refs settingDerrick Stolee1-5/+0
2023-05-26repository: move 'repository_format_worktree_config' to repo scopeVictoria Dye1-3/+4
2023-05-26config: pass 'repo' directly to 'config_with_options()'Victoria Dye1-7/+9
2023-05-26config: use gitdir to get worktree configVictoria Dye1-9/+19
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-1/+2
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+6
2023-04-24Sync with Git 2.40.1Junio C Hamano1-11/+25
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-24ws.h: move declarations for ws.c functions from cache.hElijah Newren1-0/+1
2023-04-17Sync with 2.39.3Johannes Schindelin1-11/+25
2023-04-17Sync with 2.38.5Johannes Schindelin1-11/+25
2023-04-17Sync with 2.37.7Johannes Schindelin1-11/+25
2023-04-17Sync with 2.36.6Johannes Schindelin1-11/+25
2023-04-17Sync with 2.35.8Johannes Schindelin1-11/+25
2023-04-17Sync with 2.34.8Johannes Schindelin1-11/+25
2023-04-17Sync with 2.33.8Johannes Schindelin1-11/+25
2023-04-17Sync with 2.32.7Johannes Schindelin1-11/+25
2023-04-17Sync with 2.31.8Johannes Schindelin1-11/+25
2023-04-17Sync with 2.30.9Johannes Schindelin1-11/+25
2023-04-17config.c: disallow overly-long lines in `copy_or_rename_section_in_file()`Taylor Blau1-0/+13
2023-04-17config.c: avoid integer truncation in `copy_or_rename_section_in_file()`Taylor Blau1-5/+5
2023-04-17config: avoid fixed-sized buffer when renaming/deleting a sectionTaylor Blau1-6/+7
2023-04-11mailmap, quote: move declarations of global vars to correct unitElijah Newren1-0/+1
2023-04-11pager.h: move declarations for pager.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on convert.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on advice.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on trace.h & trace2.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-1/+6
2023-04-06Merge branch 'gc/config-parsing-cleanup'Junio C Hamano1-245/+343
2023-04-06Merge branch 'ab/config-multi-and-nonbool'Junio C Hamano1-17/+92
2023-03-28config.c: rename "struct config_source cf"Glen Choo1-131/+131