aboutsummaryrefslogtreecommitdiffstats
path: root/setup.c
AgeCommit message (Expand)AuthorFilesLines
13 daysMerge branch 'ps/object-source-management'Junio C Hamano1-66/+148
13 daysMerge branch 'jc/optional-path'Junio C Hamano1-1/+1
2025-11-25odb: handle recreation of quarantine directoriesPatrick Steinhardt1-5/+0
2025-11-25odb: handle changing a repository's commondirPatrick Steinhardt1-39/+45
2025-11-25odb: move logic to disable ref updates into repoPatrick Steinhardt1-1/+1
2025-11-24config: really treat missing optional path as not configuredJunio C Hamano1-1/+1
2025-11-19setup: convert `set_git_dir()` to have file scopePatrick Steinhardt1-40/+40
2025-11-19path: move `enter_repo()` into "setup.c"Patrick Steinhardt1-0/+81
2025-08-21Merge branch 'jc/string-list-split'Junio C Hamano1-1/+2
2025-08-02string-list: align string_list_split() with its _in_place() counterpartJunio C Hamano1-1/+2
2025-07-23config: drop `git_config_set()` wrapperPatrick Steinhardt1-15/+15
2025-07-23config: drop `git_config_set_gently()` wrapperPatrick Steinhardt1-2/+2
2025-07-23config: drop `git_config_get_bool()` wrapperPatrick Steinhardt1-1/+1
2025-07-23config: drop `git_config_clear()` wrapperPatrick Steinhardt1-2/+2
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-2/+2
2025-07-21Merge branch 'bc/use-sha256-by-default-in-3.0'Junio C Hamano1-3/+6
2025-07-17Merge branch 'bc/use-sha256-by-default-in-3.0' into ps/config-wo-the-repositoryJunio C Hamano1-3/+6
2025-07-14Merge branch 'ps/use-reftable-as-default-in-3.0'Junio C Hamano1-0/+14
2025-07-07repository: move 'repository_format_precious_objects' to repo scopeAyush Chandekar1-1/+4
2025-07-07setup: use "reftable" format when experimental features are enabledPatrick Steinhardt1-0/+12
2025-07-07BreakingChanges: announce switch to "reftable" formatPatrick Steinhardt1-0/+2
2025-07-01setup: use the default algorithm to initialize repo formatbrian m. carlson1-1/+4
2025-07-01Use legacy hash for legacy formatsbrian m. carlson1-2/+2
2025-03-06Merge branch 'tz/doc-txt-to-adoc-fixes'Junio C Hamano1-1/+1
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-35/+35
2025-03-03setup.c: *.txt -> *.adoc fixesTodd Zullinger1-1/+1
2025-02-28path: adjust last remaining users of `the_repository`Patrick Steinhardt1-6/+6
2025-02-28environment: move access to "core.sharedRepository" into repo settingsPatrick Steinhardt1-10/+11
2025-02-07path: drop `git_path_buf()` in favor of `repo_git_path_replace()`Patrick Steinhardt1-17/+16
2025-02-07path: refactor `repo_common_path()` family of functionsPatrick Steinhardt1-2/+2
2025-01-30setup: fix reinit of repos with incompatible GIT_DEFAULT_HASHPatrick Steinhardt1-1/+3
2025-01-30setup: fix reinit of repos with incompatible GIT_DEFAULT_REF_FORMATPatrick Steinhardt1-1/+3
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-02worktree: add `relativeWorktrees` extensionCaleb White1-0/+7
2024-12-02setup: correctly reinitialize repository versionCaleb White1-9/+23
2024-10-08worktree: link worktrees with relative pathsCaleb White1-1/+1
2024-09-25Merge branch 'ak/typofix-2.46-maint'Junio C Hamano1-1/+1
2024-09-19setup: fix a typoAndrew Kreimer1-1/+1
2024-09-12environment: stop storing "core.logAllRefUpdates" globallyPatrick Steinhardt1-1/+1
2024-09-12environment: move `set_git_dir()` and related into setup layerPatrick Steinhardt1-0/+106
2024-09-12environment: make `get_git_work_tree()` accept a repositoryPatrick Steinhardt1-8/+8
2024-09-12environment: make `get_object_directory()` accept a repositoryPatrick Steinhardt1-1/+1
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-6/+6
2024-08-26Merge branch 'jk/mark-unused-parameters'Junio C Hamano1-1/+1
2024-08-23Merge branch 'ps/hash-and-ref-format-from-config'Junio C Hamano1-27/+74
2024-08-17setup: mark unused parameter in config callbackJeff King1-1/+1
2024-08-16setup: make ref storage format configurable via configPatrick Steinhardt1-0/+14
2024-08-16setup: make object format configurable via configPatrick Steinhardt1-0/+40
2024-08-16setup: merge configuration of repository formatsPatrick Steinhardt1-27/+20
2024-07-30safe.directory: normalize the configured pathJunio C Hamano1-4/+34
2024-07-30safe.directory: normalize the checked pathJunio C Hamano1-4/+12
2024-07-30safe.directory: preliminary clean-upJunio C Hamano1-7/+5
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano1-0/+2
2024-06-24Merge branch 'tb/precompose-getcwd'Junio C Hamano1-1/+1
2024-06-17Merge branch 'ps/ref-storage-migration'Junio C Hamano1-4/+6
2024-06-14global: introduce `USE_THE_REPOSITORY_VARIABLE` macroPatrick Steinhardt1-0/+2
2024-06-13Merge branch 'ps/ref-storage-migration' into ps/use-the-repositoryJunio C Hamano1-4/+6
2024-06-12Merge branch 'jc/safe-directory-leading-path'Junio C Hamano1-7/+14
2024-06-06Merge branch 'ps/leakfixes'Junio C Hamano1-3/+3
2024-06-06refs: convert ref storage format to an enumPatrick Steinhardt1-4/+4
2024-06-06setup: unset ref storage when reinitializing repository versionPatrick Steinhardt1-0/+2
2024-06-03Merge branch 'ps/fix-reinit-includeif-onbranch'Junio C Hamano1-9/+12
2024-05-31macOS: ls-files path fails if path of workdir is NFDTorsten Bögershausen1-1/+1
2024-05-30Merge branch 'ps/refs-without-the-repository-updates'Junio C Hamano1-2/+5
2024-05-30Merge branch 'ps/undecided-is-not-necessarily-sha1'Junio C Hamano1-0/+53
2024-05-29safe.directory: allow "lead/ing/path/*" matchJunio C Hamano1-7/+15
2024-05-27config: clarify memory ownership in `git_config_pathname()`Patrick Steinhardt1-3/+3
2024-05-23Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-mig...Junio C Hamano1-2/+5
2024-05-22setup: fix bug with "includeIf.onbranch" when initializing dirPatrick Steinhardt1-11/+15
2024-05-20Merge branch 'kn/ref-transaction-symref'Junio C Hamano1-1/+1
2024-05-17refs: drop `git_default_branch_name()`Patrick Steinhardt1-1/+4
2024-05-17refs: rename `init_db` callback to avoid confusionPatrick Steinhardt1-1/+1
2024-05-16Merge branch 'ps/refs-without-the-repository'Junio C Hamano1-1/+1
2024-05-16Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-reposi...Junio C Hamano1-1/+1
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-1/+1
2024-05-06path: move `validate_headref()` to its only userPatrick Steinhardt1-0/+53
2024-04-29Sync with 2.44.1Johannes Schindelin1-14/+77
2024-04-19Sync with 2.43.4Johannes Schindelin1-14/+77
2024-04-19Sync with 2.42.2Johannes Schindelin1-14/+77
2024-04-19Sync with 2.41.1Johannes Schindelin1-14/+77
2024-04-19Sync with 2.40.2Johannes Schindelin1-0/+76
2024-04-19init.templateDir: consider this config setting protectedJohannes Schindelin1-7/+30
2024-04-17init: refactor the template directory discovery into its own functionJohannes Schindelin1-0/+32
2024-04-17fetch/clone: detect dubious ownership of local repositoriesJohannes Schindelin1-0/+21
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-0/+22
2024-03-21Merge branch 'jc/safe-implicit-bare'Junio C Hamano1-1/+27
2024-03-14Merge branch 'gt/core-bare-in-templates'Junio C Hamano1-33/+3
2024-03-11setup: notice more types of implicit bare repositoriesJunio C Hamano1-1/+27
2024-03-04setup: remove unnecessary variableGhanshyam Thakkar1-33/+3
2024-02-27builtin/clone: allow remote helpers to detect repoPatrick Steinhardt1-1/+8
2024-02-08Merge branch 'en/header-cleanup' into maint-2.43Junio C Hamano1-1/+0
2024-01-30Merge branch 'kl/allow-working-in-dot-git-in-non-bare-repository'Junio C Hamano1-1/+2
2024-01-26Merge branch 'ps/worktree-refdb-initialization'Junio C Hamano1-16/+1
2024-01-20setup: allow cwd=.git w/ bareRepository=explicitKyle Lippincott1-1/+2
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-6/+60
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-1/+0
2024-01-08setup: move creation of "refs/" into the files backendPatrick Steinhardt1-15/+0
2024-01-08refs: prepare `refs_init_db()` for initializing worktree refsPatrick Steinhardt1-1/+1
2024-01-02setup: introduce GIT_DEFAULT_REF_FORMAT envvarPatrick Steinhardt1-0/+7
2024-01-02setup: introduce "extensions.refStorage" extensionPatrick Steinhardt1-3/+21
2024-01-02setup: set repository's formats on initPatrick Steinhardt1-0/+7
2024-01-02setup: start tracking ref storage formatPatrick Steinhardt1-3/+25
2023-12-27Merge branch 'ps/clone-into-reftable-repository'Junio C Hamano1-45/+69
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-20Merge branch 'ps/clone-into-reftable-repository' into ps/refstorage-extensionJunio C Hamano1-45/+69
2023-12-12builtin/clone: create the refdb with the correct object formatPatrick Steinhardt1-1/+1
2023-12-12setup: allow skipping creation of the refdbPatrick Steinhardt1-8/+5
2023-12-12setup: extract function to create the refdbPatrick Steinhardt1-38/+65
2023-12-09setup: handle NULL value when parsing extensionsJeff King1-0/+2
2023-11-07setup: fix leaking repository formatPatrick Steinhardt1-0/+2
2023-11-07setup: refactor `upgrade_repository_format()` to have common exitPatrick Steinhardt1-11/+20
2023-11-02Merge branch 'ds/scalar-updates' into maint-2.42Junio C Hamano1-22/+12
2023-10-02repository: implement extensions.compatObjectFormatbrian m. carlson1-2/+21
2023-10-02repository: add a compatibility hash algorithmEric W. Biederman1-0/+3
2023-08-28setup: add discover_git_directory_reason()Derrick Stolee1-22/+12
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-6/+12
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-0/+493
2023-06-28config: pass kvi to die_bad_number()Glen Choo1-1/+1
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-5/+11
2023-06-23Merge branch 'gc/discover-not-setup'Junio C Hamano1-8/+0
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21setup: adopt shared init-db & clone codeElijah Newren1-0/+492
2023-06-16setup.c: don't setup in discover_git_directory()Glen Choo1-5/+0
2023-05-26repository: move 'repository_format_worktree_config' to repo scopeVictoria Dye1-2/+8
2023-05-01setup: trace bare repository setupsGlen Choo1-0/+1
2023-04-11treewide: remove double forward declaration of read_in_fullElijah Newren1-0/+1
2023-04-11treewide: remove cache.h inclusion due to object-name.h changesElijah Newren1-1/+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 trace.h & trace2.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-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2022-08-14Merge branch 'js/safe-directory-plus'Junio C Hamano1-12/+18
2022-08-08setup: prepare for more detailed "dubious ownership" messagesJohannes Schindelin1-10/+15
2022-08-08setup: fix some formattingJohannes Schindelin1-4/+5
2022-07-14setup.c: create `safe.bareRepository`Glen Choo1-1/+56
2022-07-14safe.directory: use git_protected_config()Glen Choo1-1/+1
2022-07-11Sync with Git 2.37.1Junio C Hamano1-11/+60
2022-07-11Merge branch 'cr/setup-bug-typo'Junio C Hamano1-1/+1
2022-06-27Sync with Git 2.36.2Junio C Hamano1-11/+60
2022-06-23Sync with 2.35.4Johannes Schindelin1-11/+60
2022-06-23Sync with 2.34.4Johannes Schindelin1-11/+60
2022-06-23Sync with 2.32.3Johannes Schindelin1-11/+60
2022-06-23Sync with 2.31.4Johannes Schindelin1-11/+60
2022-06-23setup: tighten ownership checks post CVE-2022-24765Carlo Marcelo Arenas Belón1-11/+60
2022-06-17setup: fix function name in a BUG() messageCleber Rosa1-1/+1
2022-05-24setup: don't die if realpath(3) fails on getcwd(3)Kevin Locke1-1/+10
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-1/+1
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-1/+1
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-1/+1
2022-04-13Sync with Git 2.35.3Junio C Hamano1-3/+9
2022-04-13Git 2.35.3v2.35.3Junio C Hamano1-3/+9
2022-04-13Git 2.33.3v2.33.3Junio C Hamano1-3/+9
2022-04-13Git 2.32.2v2.32.2Junio C Hamano1-3/+9
2022-04-13setup: opt-out of check with safe.directory=*Derrick Stolee1-2/+4
2022-04-13setup: fix safe.directory key not being checkedMatheus Valadares1-0/+3
2022-04-13t0033: add tests for safe.directoryDerrick Stolee1-1/+2
2022-04-11Merge tag 'v2.35.2'Junio C Hamano1-1/+56
2022-03-24Sync with 2.34.2Johannes Schindelin1-1/+56
2022-03-24Sync with 2.32.1Johannes Schindelin1-1/+56
2022-03-24Sync with 2.31.2Johannes Schindelin1-1/+56
2022-03-21setup_git_directory(): add an owner check for the top-level directoryJohannes Schindelin1-1/+56
2022-02-04i18n: factorize "invalid value" messagesJean-Noël Avila1-1/+2
2021-12-09setup: introduce startup_info->original_cwdElijah Newren1-0/+65
2021-09-09setup: use xopen and xdup in sanitize_stdfdsRené Scharfe1-5/+3
2021-07-16Merge branch 'jt/partial-clone-submodule-1'Junio C Hamano1-4/+13
2021-06-28repository: move global r_f_p_c to repo structJonathan Tan1-4/+13
2021-05-20setup: split "extensions found" messages into singular and pluralAlex Henrie1-2/+6
2021-04-05macOS: precompose startup_info->prefixTorsten Bögershausen1-10/+18
2020-08-11Merge branch 'bc/sha-256-part-3'Junio C Hamano1-1/+10
2020-07-30Merge branch 'jk/reject-newer-extensions-in-v0' into masterJunio C Hamano1-16/+80
2020-07-30setup: add support for reading extensions.objectformatbrian m. carlson1-1/+15
2020-07-16Merge branch 'jn/v0-with-extensions-fix' into masterJunio C Hamano1-14/+10
2020-07-16verify_repository_format(): complain about new extensions in v0 repoJeff King1-16/+80
2020-07-16repository: allow repository format upgrade with extensionsJonathan Nieder1-5/+7
2020-07-16Revert "check_repository_format_gently(): refuse extensions for old repositor...Jonathan Nieder1-9/+3
2020-07-06Merge branch 'bc/sha-256-part-2'Junio C Hamano1-0/+1
2020-06-05check_repository_format_gently(): refuse extensions for old repositoriesXin Li1-3/+9
2020-06-05repository: add a helper function to perform repository format upgradeXin Li1-0/+29
2020-05-27setup: set the_repository's hash algo when checking formatbrian m. carlson1-0/+1
2020-03-26Merge branch 'bc/sha-256-part-1-of-4'Junio C Hamano1-2/+4
2020-03-25Merge branch 'am/real-path-fix'Junio C Hamano1-13/+22
2020-03-16Merge branch 'es/outside-repo-errmsg-hints'Junio C Hamano1-2/+6
2020-03-15prefix_path: show gitdir if worktree unavailableEmily Shaffer1-2/+6
2020-03-10real_path_if_valid(): remove unsafe APIAlexandr Miloslavskiy1-1/+1
2020-03-10real_path: remove unsafe APIAlexandr Miloslavskiy1-3/+12
2020-03-06set_git_dir: fix crash when used with real_path()Alexandr Miloslavskiy1-9/+9
2020-02-24setup: allow check_repository_format to read repository formatbrian m. carlson1-2/+4
2020-02-17Merge branch 'es/outside-repo-errmsg-hints'Junio C Hamano1-1/+2
2020-02-16prefix_path: show gitdir when arg is outside repoEmily Shaffer1-1/+2
2020-01-27verify_filename(): handle backslashes in "wildcards are pathspecs" ruleJeff King1-3/+20
2019-09-30Merge branch 'js/gitdir-at-unc-root'Junio C Hamano1-2/+8
2019-08-26setup_git_directory(): handle UNC root paths correctlyJohannes Schindelin1-1/+1
2019-08-26Fix .git/ discovery at the root of UNC sharesJohannes Schindelin1-0/+6
2019-08-26setup_git_directory(): handle UNC paths correctlyJohannes Schindelin1-1/+1