aboutsummaryrefslogtreecommitdiffstats
path: root/setup.c
AgeCommit message (Expand)AuthorFilesLines
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-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
2019-06-25Move repository_format_partial_clone to promisor-remote.cChristian Couder1-1/+2
2019-04-16sha1-name.c: remove the_repo from maybe_die_on_misspelt_object_nameNguyễn Thái Ngọc Duy1-3/+4
2019-03-20Merge branch 'ma/clear-repository-format'Junio C Hamano1-12/+28
2019-03-01setup: fix memory leaks with `struct repository_format`Martin Ågren1-12/+27
2019-02-05Merge branch 'js/abspath-part-inside-repo'Junio C Hamano1-3/+3
2019-01-23setup: free old value before setting `work_tree`Martin Ågren1-0/+1
2019-01-18abspath_part_inside_repo: respect core.ignoreCaseJohannes Schindelin1-3/+3
2019-01-03Simplify handling of setup_git_directory_gently() failure cases.Erin Dahlgren1-31/+43
2018-10-22worktree: add per-worktree config filesNguyễn Thái Ngọc Duy1-8/+32
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-2/+2
2018-04-25Merge branch 'jk/relative-directory-fix'Junio C Hamano1-6/+3
2018-04-10Merge branch 'nd/remove-ignore-env-field'Junio C Hamano1-2/+1
2018-03-30set_work_tree: use chdir_notifyJeff King1-6/+3
2018-03-05repository.c: move env-related setup code back to environment.cNguyễn Thái Ngọc Duy1-2/+1
2018-02-27Merge branch 'as/ll-i18n'Junio C Hamano1-31/+31
2018-02-13Merge branch 'jh/fsck-promisors'Junio C Hamano1-1/+6
2018-02-13Mark messages for translationsAlexander Shopov1-31/+31
2017-12-19Merge branch 'sg/setup-doc-update'Junio C Hamano1-1/+1
2017-12-07setup.c: fix comment about order of .git directory discoverySZEDER Gábor1-1/+1
2017-12-05extension.partialclone: introduce partial clone extensionJonathan Tan1-1/+6
2017-11-13Integrate hash algorithm support with repo setupbrian m. carlson1-0/+3
2017-11-13setup: expose enumerated repo infobrian m. carlson1-21/+25
2017-11-09Merge branch 'js/early-config'Junio C Hamano1-1/+3
2017-11-03setup: avoid double slashes when looking for HEADJeff King1-1/+3
2017-10-07Merge branch 'ks/verify-filename-non-option-error-message-tweak'Junio C Hamano1-1/+1
2017-10-04setup: update error message to be more meaningfulKaartic Sivaraam1-1/+1
2017-09-27read_gitfile_gently: clarify return value ownership.Han-Wen Nienhuys1-1/+2
2017-09-06set_git_dir: handle feeding gitdir to itselfJeff King1-5/+0
2017-08-02grep: recurse in-process using 'struct repository'Brandon Williams1-11/+1
2017-06-23environment: place key repository state in the_repositoryBrandon Williams1-2/+15
2017-06-23setup: add comment indicating a hackBrandon Williams1-0/+6
2017-06-23setup: don't perform lazy initialization of repository stateBrandon Williams1-0/+14
2017-06-23Merge branches 'bw/ls-files-sans-the-index' and 'bw/config-h' into bw/repo-ob...Junio C Hamano1-6/+13
2017-06-19Merge branch 'jk/pathspec-magic-disambiguation'Junio C Hamano1-10/+32
2017-06-15setup: teach discover_git_directory to respect the commondirBrandon Williams1-6/+11
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-15discover_git_directory(): avoid setting invalid git_dirJohannes Schindelin1-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-05-29verify_filename(): flip order of checksJeff King1-1/+1
2017-05-29verify_filename(): treat ":(magic)" as a pathspecJeff King1-1/+19
2017-05-29check_filename(): handle ":^" path magicJeff King1-0/+4
2017-05-29check_filename(): use skip_prefixJeff King1-3/+2
2017-05-29check_filename(): refactor ":/" handlingJeff King1-7/+8
2017-05-08setup_discovered_git_dir(): plug memory leakJohannes Schindelin1-2/+7
2017-05-08setup_bare_git_dir(): help static analysisJohannes Schindelin1-1/+1
2017-03-30Merge branch 'bw/recurse-submodules-relative-fix'Junio C Hamano1-1/+5
2017-03-28Merge branch 'rs/strbuf-add-real-path' into maintJunio C Hamano1-1/+1
2017-03-21prefix_filename: return newly allocated stringJeff King1-3/+8
2017-03-21prefix_filename: drop length parameterJeff King1-1/+1
2017-03-17Merge branch 'js/early-config'Junio C Hamano1-76/+177
2017-03-17setup: allow for prefix to be passed to git commandsBrandon Williams1-1/+6
2017-03-14setup.c: mention unresolved problemsJohannes Schindelin1-0/+2
2017-03-14setup_git_directory_gently_1(): avoid die()ingJohannes Schindelin1-8/+17
2017-03-14setup: introduce the discover_git_directory() functionJohannes Schindelin1-0/+43
2017-03-14setup_git_directory_1(): avoid changing global stateJohannes Schindelin1-75/+118
2017-03-14setup: prepare setup_discovered_git_dir() for the root directoryJohannes Schindelin1-2/+4
2017-03-12Merge branch 'js/realpath-pathdup-fix'Junio C Hamano1-2/+2
2017-03-10Merge branch 'rs/strbuf-add-real-path'Junio C Hamano1-1/+1
2017-03-08real_pathdup(): fix callsites that wanted it to die on errorJohannes Schindelin1-2/+2
2017-03-07setup_git_directory(): use is_dir_sep() helperJohannes Schindelin1-1/+3
2017-02-27strbuf: add strbuf_add_real_path()René Scharfe1-1/+1
2017-01-26cache.h: expose the dying procedure for reading gitlinksStefan Beller1-22/+26
2017-01-26setup: add gentle version of resolve_git_dirStefan Beller1-2/+2
2016-12-12real_path: have callers use real_pathdup and strbuf_realpathBrandon Williams1-5/+8
2016-08-09i18n: setup: mark error messages for translationVasco Almeida1-9/+9
2016-06-17i18n: setup: mark strings for translationVasco Almeida1-8/+8
2016-04-22Merge branch 'jc/xstrfmt-null-with-prec-0'Junio C Hamano1-1/+1
2016-04-13Merge branch 'jk/check-repository-format'Junio C Hamano1-66/+78
2016-04-07setup.c: do not feed NULL to "%.*s" even with precision 0Junio C Hamano1-1/+1
2016-03-11verify_repository_format: mark messages for translationJeff King1-2/+2
2016-03-11setup: drop repository_format_version globalJeff King1-1/+0
2016-03-11setup: unify repository version callbacksJeff King1-42/+23
2016-03-11setup: refactor repo format reading and verificationJeff King1-39/+79
2016-03-11check_repository_format_gently: stop using git_config_earlyJeff King1-8/+3
2016-03-11lazily load core.sharedrepositoryJeff King1-2/+0
2016-03-11wrap shared_repository global in get/set accessorsJeff King1-1/+1
2016-03-11setup: document check_repository_format()Jeff King1-2/+2
2016-03-06setup: set startup_info->have_repository more reliablyJeff King1-1/+3
2016-03-06setup: make startup_info available everywhereJeff King1-4/+6
2016-02-26Merge branch 'jk/tighten-alloc'Junio C Hamano1-3/+2
2016-02-24Merge branch 'nd/dwim-wildcards-as-pathspecs'Junio C Hamano1-4/+2
2016-02-22use xmallocz to avoid size arithmeticJeff King1-3/+2
2016-02-10Merge branch 'nd/do-not-move-worktree-manually'Junio C Hamano1-12/+0
2016-02-10check_filename: tighten dwim-wildcard ambiguityJeff King1-4/+2
2016-01-25clean: make is_git_repository a public functionJeff King1-0/+17
2016-01-22worktree: stop supporting moving worktrees manuallyNguyễn Thái Ngọc Duy1-12/+0