aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/init-db.c
AgeCommit message (Expand)AuthorFilesLines
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-1/+15
2024-01-02builtin/init: introduce `--ref-format=` value flagPatrick Steinhardt1-1/+12
2024-01-02setup: start tracking ref storage formatPatrick Steinhardt1-1/+3
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-21builtin.h: remove unneccessary includesElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-21setup: adopt shared init-db & clone codeElijah Newren1-496/+0
2023-06-21init-db, clone: change unnecessary global into passed parameterElijah Newren1-4/+5
2023-06-21init-db: remove unnecessary global variableElijah Newren1-5/+7
2023-06-21init-db: document existing bug with core.bare in template configElijah Newren1-1/+28
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+1
2023-04-24copy.h: move declarations for copy.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-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-21wrapper.h: move declarations for wrapper.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-10-13doc txt & -h consistency: add missing optionsÆvar Arnfjörð Bjarmason1-0/+2
2022-10-13doc txt & -h consistency: word-wrapÆvar Arnfjörð Bjarmason1-1/+2
2022-01-05i18n: refactor "foo and bar are mutually exclusive"Jean-Noël Avila1-1/+1
2021-05-25Merge branch 'mt/init-template-userpath-fix'Junio C Hamano1-1/+2
2021-05-25init: fix bug regarding ~/ expansion in init.templateDirMatheus Tavares1-1/+2
2021-04-07Merge branch 'ah/plugleaks'Junio C Hamano1-22/+10
2021-03-14init-db: silence template_dir leak when converting to absolute pathAndrzej Hunt1-1/+3
2021-03-14init: remove git_init_db_config() while fixing leaksAndrzej Hunt1-21/+7
2021-03-10builtin/init-db: handle bare clones when core.bare set to falsebrian m. carlson1-2/+2
2020-12-13get_default_branch_name(): prepare for showing some adviceJohannes Schindelin1-3/+5
2020-09-22builtin/clone: avoid failure with GIT_DEFAULT_HASHbrian m. carlson1-2/+4
2020-08-31init: make --separate-git-dir work from within linked worktreeEric Sunshine1-0/+24
2020-08-31init: teach --separate-git-dir to repair linked worktreesEric Sunshine1-0/+2
2020-08-24Merge branch 'es/init-no-separate-git-dir-in-bare'Junio C Hamano1-0/+5
2020-08-10init: disallow --separate-git-dir with bare repositoryEric Sunshine1-0/+5
2020-07-30repository: enable SHA-256 support by defaultbrian m. carlson1-5/+0
2020-06-24init: allow setting the default for the initial branch name via the configDon Goodman-Wilson1-1/+1
2020-06-24init: allow specifying the initial branch name for the new repositoryJohannes Schindelin1-6/+27
2020-03-26Merge branch 'bc/sha-256-part-1-of-4'Junio C Hamano1-10/+65
2020-03-06set_git_dir: fix crash when used with real_path()Alexandr Miloslavskiy1-2/+2
2020-02-24init-db: move writing repo version into a functionbrian m. carlson1-18/+24
2020-02-24builtin/init-db: add environment variable for new repo hashbrian m. carlson1-0/+9
2020-02-24builtin/init-db: allow specifying hash algorithm on command linebrian m. carlson1-6/+46
2020-02-24setup: allow check_repository_format to read repository formatbrian m. carlson1-1/+1
2019-06-13Merge branch 'nd/init-relative-template-fix'Junio C Hamano1-0/+3
2019-05-13init: make --template path relative to $CWDNguyễn Thái Ngọc Duy1-0/+3
2019-04-16Merge branch 'js/init-db-update-for-mingw'Junio C Hamano1-0/+7
2019-03-20Merge branch 'ma/clear-repository-format'Junio C Hamano1-1/+2
2019-03-12mingw: respect core.hidedotfiles = false in git-init againJohannes Schindelin1-0/+7
2019-03-01setup: fix memory leaks with `struct repository_format`Martin Ågren1-1/+2
2019-01-29Merge branch 'jk/save-getenv-result'Junio C Hamano1-2/+4
2019-01-11init: make a copy of $GIT_DIR stringJeff King1-2/+4
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-0/+1
2018-07-24pass st.st_size as hint for strbuf_readlink()Jeff King1-1/+2
2018-06-01Merge branch 'rd/init-typo'Junio C Hamano1-1/+1
2018-05-30init: fix grammar in "templates not found" msgRobert P. J. Day1-1/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2018-02-22init-db: rename 'template' variablesBrandon Williams1-15/+15
2017-09-08add UNLEAK annotation for reducing leak false positivesJeff King1-0/+2
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-03-08real_pathdup(): fix callsites that wanted it to die on errorJohannes Schindelin1-3/+3
2017-01-31refs: add option core.logAllRefUpdates = alwaysCornelius Weig1-1/+1
2016-12-12real_path: have callers use real_pathdup and strbuf_realpathBrandon Williams1-3/+3
2016-10-03Merge branch 'nd/init-core-worktree-in-multi-worktree-world'Junio C Hamano1-40/+31
2016-09-25init: kill git_link variableNguyễn Thái Ngọc Duy1-12/+4
2016-09-25init: do not set unnecessary core.worktreeNguyễn Thái Ngọc Duy1-3/+6
2016-09-25init: kill set_git_dir_init()Nguyễn Thái Ngọc Duy1-29/+21
2016-09-25init: call set_git_dir_init() from within init_db()Nguyễn Thái Ngọc Duy1-7/+11
2016-09-25init: correct re-initialization from a linked worktreeNguyễn Thái Ngọc Duy1-1/+1
2016-09-21Merge branch 'jk/setup-sequence-update'Junio C Hamano1-4/+13
2016-09-19Merge branch 'mh/ref-store'Junio C Hamano1-10/+11
2016-09-13init: reset cached config when entering new repoJeff King1-0/+6
2016-09-13init: expand comments explaining config trickeryJeff King1-4/+7
2016-09-09refs: add methods to init refs dbDavid Turner1-10/+11
2016-06-17i18n: init-db: join message piecesVasco Almeida1-7/+10
2016-05-02Merge branch 'jk/check-repository-format' into maintJunio C Hamano1-21/+24
2016-04-13Merge branch 'jk/check-repository-format'Junio C Hamano1-21/+24
2016-03-11init: use setup.c's repo version verificationJeff King1-9/+12
2016-03-11wrap shared_repository global in get/set accessorsJeff King1-12/+12
2016-03-06setup: set startup_info->have_repository more reliablyJeff King1-0/+1
2016-02-22config: rename git_config_set_or_die to git_config_setPatrick Steinhardt1-10/+10
2016-02-22init-db: die on config errors when initializing empty repoPatrick Steinhardt1-10/+10
2015-11-20initdb: make safe_create_dir publicDavid Turner1-12/+0
2015-10-05init: use strbufs to store pathsJeff King1-98/+74
2015-10-05probe_utf8_pathname_composition: use internal strbufJeff King1-1/+1
2015-09-25convert trivial sprintf / strcpy calls to xsnprintfJeff King1-5/+6
2015-08-25write_file(): drop caller-supplied LF from calls to create a one-liner fileJunio C Hamano1-1/+1
2015-08-24write_file(): drop "fatal" parameterJunio C Hamano1-1/+1
2015-06-22refs: move the remaining ref module declarations to refs.hMichael Haggerty1-0/+1
2015-05-11Merge branch 'nd/multiple-work-trees'Junio C Hamano1-6/+1
2015-05-05Merge branch 'jk/init-core-worktree-at-root'Junio C Hamano1-3/+15
2015-04-02init: don't set core.worktree when initializing /.gitJeff King1-3/+15
2015-01-14standardize usage info string formatAlex Henrie1-1/+1
2014-12-22Merge branch 'jc/exec-cmd-system-path-leak-fix'Junio C Hamano1-5/+10
2014-12-22Merge branch 'tb/config-core-filemode-check-on-broken-fs'Junio C Hamano1-0/+2
2014-12-05Merge branch 'mh/config-flip-xbit-back-after-checking'Junio C Hamano1-1/+2
2014-12-01use new wrapper write_file() for simple file writingNguyễn Thái Ngọc Duy1-6/+1
2014-11-30system_path(): always return free'able memory to the callerJunio C Hamano1-5/+10
2014-11-21init-db: improve the filemode trustability checkTorsten Bögershausen1-0/+2
2014-11-18create_default_files(): don't set u+x bit on $GIT_DIR/configMichael Haggerty1-1/+2
2014-09-02Merge branch 'rs/strbuf-getcwd'Junio C Hamano1-13/+11
2014-08-26use xgetcwd() to set $GIT_DIRRené Scharfe1-4/+3
2014-08-26use xgetcwd() to get the current directory or dieRené Scharfe1-9/+8
2014-07-28init: avoid superfluous real_path() callsRené Scharfe1-4/+4
2014-04-17i18n: only extract comments marked with "TRANSLATORS:"Jiang Xin1-5/+3
2014-01-27Merge branch 'mh/safe-create-leading-directories'Junio C Hamano1-4/+5
2014-01-06cmd_init_db(): when creating directories, handle errors conservativelyMichael Haggerty1-3/+4
2014-01-06safe_create_leading_directories(): introduce enum for return valuesMichael Haggerty1-2/+2
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2012-08-20i18n: init-db: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-9/+9
2012-07-08git on Mac OS and precomposed unicodeTorsten Bögershausen1-0/+1
2011-12-20builtin/init-db.c: eliminate -Wformat warning on SolarisÆvar Arnfjörð Bjarmason1-1/+1
2011-08-22read_gitfile_gently(): rename misnamed function to read_gitfile()Junio C Hamano1-1/+1
2011-05-25Merge branch 'maint'Junio C Hamano1-1/+1
2011-05-25init/clone: remove short option -L and document --separate-git-dirNguyen Thai Ngoc Duy1-1/+1
2011-04-12i18n: mark init-db messages for translationÆvar Arnfjörð Bjarmason1-5/+5
2011-04-01Merge branch 'nd/init-gitdir'Junio C Hamano1-3/+65
2011-04-01Merge branch 'ab/i18n-st'Junio C Hamano1-26/+32
2011-03-19init, clone: support --separate-git-dir for .git fileNguyễn Thái Ngọc Duy1-3/+65
2011-03-17Name make_*_path functions more accuratelyCarlos Martín Nieto1-4/+4
2011-03-09i18n: git-init "Initialized [...] repository" messageÆvar Arnfjörð Bjarmason1-3/+9
2011-03-09i18n: git-init basic messagesÆvar Arnfjörð Bjarmason1-23/+23
2011-03-03init: remove unnecessary checkNguyễn Thái Ngọc Duy1-7/+5
2011-02-15clone,init: describe --template using the same wordingMichael J Gruber1-1/+1
2010-12-22Remove all logic from get_git_work_tree()Nguyễn Thái Ngọc Duy1-3/+11
2010-12-22setup: limit get_git_work_tree()'s to explicit setup case onlyNguyễn Thái Ngọc Duy1-0/+1
2010-10-06init: plug tiny one-time memory leakJonathan Nieder1-13/+19
2010-05-10handle "git --bare init <dir>" properlyJeff King1-1/+1
2010-03-10Merge branch 'sd/init-template'Junio C Hamano1-0/+14
2010-03-10Merge branch 'lt/deepen-builtin-source'Junio C Hamano1-0/+501
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+498