aboutsummaryrefslogtreecommitdiffstats
path: root/path.c
AgeCommit message (Expand)AuthorFilesLines
2017-10-28Merge branch 'ao/path-use-xmalloc'Junio C Hamano1-1/+1
2017-10-25path.c: use xmalloc() in add_to_trie()Andrey Okoshkin1-1/+1
2017-10-07Merge branch 'tg/memfixes'Junio C Hamano1-5/+4
2017-10-05Merge branch 'rs/cleanup-strbuf-users'Junio C Hamano1-1/+1
2017-10-04path.c: fix uninitialized memory accessJeff King1-5/+4
2017-10-03Merge branch 'jk/validate-headref-fix'Junio C Hamano1-11/+12
2017-10-02path: use strbuf_add_real_path()René Scharfe1-1/+1
2017-09-27validate_headref: use get_oid_hex for detached HEADsJeff King1-2/+2
2017-09-27validate_headref: use skip_prefix for symref parsingJeff King1-9/+6
2017-09-27validate_headref: NUL-terminate HEAD bufferJeff King1-0/+4
2017-08-23pack: move {,re}prepare_packed_git and approximate_object_countJonathan Tan1-0/+1
2017-08-04Merge tag 'v2.13.5' into maintJunio C Hamano1-0/+5
2017-08-01Merge tag 'v2.12.4' into maintJunio C Hamano1-0/+5
2017-07-30Merge tag 'v2.10.4' into maint-2.11Junio C Hamano1-0/+5
2017-07-30Merge tag 'v2.9.5' into maint-2.10Junio C Hamano1-0/+5
2017-07-30Merge tag 'v2.8.6' into maint-2.9Junio C Hamano1-0/+5
2017-07-30Merge tag 'v2.7.6' into maint-2.8Junio C Hamano1-0/+5
2017-07-28connect: factor out "looks like command line option" checkJeff King1-0/+5
2017-06-23path: add repo_worktree_path and strbuf_repo_worktree_pathBrandon Williams1-0/+41
2017-06-23path: add repo_git_path and strbuf_repo_git_pathBrandon Williams1-0/+21
2017-06-23path: worktree_git_path() should not use file relocationBrandon Williams1-1/+2
2017-06-23path: convert do_git_path to take a 'struct repository'Brandon Williams1-14/+28
2017-06-23path: convert strbuf_git_common_path to take a 'struct repository'Brandon Williams1-5/+8
2017-06-23path: always pass in commondir to update_common_dirBrandon Williams1-3/+1
2017-06-23path: create path.hBrandon Williams1-0/+1
2017-06-23environment: place key repository state in the_repositoryBrandon Williams1-5/+6
2017-04-23Merge branch 'nd/conditional-config-include'Junio C Hamano1-3/+8
2017-04-19Merge branch 'nd/files-backend-git-dir'Junio C Hamano1-28/+7
2017-04-14path.c: and an option to call real_path() in expand_user_path()Nguyễn Thái Ngọc Duy1-3/+8
2017-03-27path.c: move some code out of strbuf_git_path_submodule()Nguyễn Thái Ngọc Duy1-28/+7
2017-03-13path.c: add xdg_cache_homeDevin Lehmacher1-0/+15
2017-01-17Merge branch 'js/normalize-path-copy-ceil' into maintJunio C Hamano1-9/+14
2016-12-19Merge branch 'js/normalize-path-copy-ceil'Junio C Hamano1-9/+14
2016-12-16normalize_path_copy(): fix pushing to //server/share/dir on WindowsJohannes Sixt1-9/+14
2016-10-27Merge branch 'rs/ring-buffer-wraparound'Junio C Hamano1-1/+2
2016-10-26hex: make wraparound of the index into ring-buffer explicitRené Scharfe1-1/+2
2016-09-12Merge branch 'jk/diff-submodule-diff-inline'Junio C Hamano1-6/+33
2016-08-31allow do_submodule_path to work even if submodule isn't checked outJacob Keller1-6/+33
2016-08-19Merge branch 'ab/hooks'Junio C Hamano1-0/+2
2016-08-16rev-parse: respect core.hooksPath in --git-pathJohannes Schindelin1-0/+2
2016-08-08Merge branch 'rs/use-strbuf-addbuf' into maintJunio C Hamano1-1/+1
2016-07-25Merge branch 'rs/use-strbuf-addbuf'Junio C Hamano1-1/+1
2016-07-19use strbuf_addbuf() for appending a strbuf to anotherRené Scharfe1-1/+1
2016-05-26Merge branch 'lp/typofixes' into maintJunio C Hamano1-1/+1
2016-05-23Merge branch 'nd/worktree-various-heads'Junio C Hamano1-6/+47
2016-05-17Merge branch 'lp/typofixes'Junio C Hamano1-1/+1
2016-05-06typofix: assorted typofixes in comments, documentation and messagesLi Peng1-1/+1
2016-05-02Merge branch 'jk/check-repository-format' into maintJunio C Hamano1-5/+5
2016-04-22path.c: refactor and add worktree_git_path()Nguyễn Thái Ngọc Duy1-6/+18
2016-04-22path.c: add git_common_path() and strbuf_git_common_path()Nguyễn Thái Ngọc Duy1-0/+29
2016-04-13Merge branch 'jk/check-repository-format'Junio C Hamano1-5/+5
2016-03-23config --show-origin: report paths with forward slashesJohannes Schindelin1-0/+3
2016-03-11wrap shared_repository global in get/set accessorsJeff King1-5/+5
2016-02-05Merge branch 'js/dirname-basename' into maintJunio C Hamano1-9/+5
2016-02-03Merge branch 'js/dirname-basename'Junio C Hamano1-9/+5
2016-01-12Refactor skipping DOS drive prefixesJohannes Schindelin1-9/+5
2015-12-08Merge branch 'dt/refs-backend-pre-vtable'Junio C Hamano1-0/+12
2015-12-04Merge branch 'dk/gc-idx-wo-pack' into maintJunio C Hamano1-1/+1
2015-11-20Merge branch 'dk/gc-idx-wo-pack'Jeff King1-1/+1
2015-11-20initdb: make safe_create_dir publicDavid Turner1-0/+12
2015-11-05Merge branch 'nd/clone-linked-checkout' into maintJunio C Hamano1-5/+9
2015-11-03Merge branch 'mk/submodule-gitdir-path' into maintJunio C Hamano1-4/+18
2015-10-20Merge branch 'jk/war-on-sprintf'Junio C Hamano1-34/+46
2015-10-16Merge branch 'rd/test-path-utils'Junio C Hamano1-0/+5
2015-10-15Merge branch 'nd/clone-linked-checkout'Junio C Hamano1-4/+8
2015-10-15Merge branch 'mk/submodule-gitdir-path'Junio C Hamano1-4/+17
2015-10-08test-path-utils.c: remove incorrect assumptionRay Donnelly1-0/+5
2015-10-05use strbuf_complete to conditionally append slashJeff King1-2/+1
2015-10-05remove_leading_path: use a strbuf for internal storageJeff King1-4/+6
2015-10-05enter_repo: convert fixed-size buffers to strbufsJeff King1-28/+29
2015-09-28enter_repo: allow .git files in strict modeNguyễn Thái Ngọc Duy1-2/+7
2015-09-28enter_repo: avoid duplicating logic, use is_git_directory() insteadNguyễn Thái Ngọc Duy1-2/+1
2015-09-25add git_path_buf helper functionJeff King1-0/+10
2015-09-14path: implement common_dir handling in git_pathdup_submodule()Max Kirillov1-4/+18
2015-09-07path.c: delete an extra spaceNguyễn Thái Ngọc Duy1-1/+1
2015-09-01refs: make refs/bisect/* per-worktreeDavid Turner1-0/+2
2015-09-01path: optimize common dir checkingDavid Turner1-14/+213
2015-09-01refs: clean up common_listDavid Turner1-21/+37
2015-08-17prepare_packed_git(): refactor garbage reporting in pack directoryJunio C Hamano1-1/+1
2015-08-10memoize common git-path "constant" filesJeff King1-0/+10
2015-08-10path.c: drop git_path_submoduleJeff King1-10/+0
2015-08-10cache.h: complete set of git_path_submodule helpersJeff King1-5/+30
2015-05-11Merge branch 'pt/xdg-config-path'Junio C Hamano1-28/+15
2015-05-11Merge branch 'nd/multiple-work-trees'Junio C Hamano1-77/+157
2015-05-06path.c: remove home_config_paths()Paul Tan1-28/+0
2015-05-06path.c: implement xdg_config_home()Paul Tan1-0/+15
2015-04-14Merge branch 'pt/enter-repo-comment-fix'Junio C Hamano1-8/+3
2015-03-31enter_repo(): fix docs to match codePaul Tan1-8/+3
2014-12-17Sync with v2.1.4Junio C Hamano1-0/+33
2014-12-17Sync with v2.0.5Junio C Hamano1-0/+33
2014-12-17Sync with v1.9.5Junio C Hamano1-0/+33
2014-12-17Sync with v1.8.5.6Junio C Hamano1-0/+33
2014-12-17path: add is_ntfs_dotgit() helperJohannes Schindelin1-0/+33
2014-12-01git-common-dir: make "modules/" per-working-directory directoryMax Kirillov1-1/+1
2014-12-01git_path(): keep "info/sparse-checkout" per work-treeNguyễn Thái Ngọc Duy1-1/+2
2014-12-01count-objects: report unused files in $GIT_DIR/worktrees/...Nguyễn Thái Ngọc Duy1-2/+27
2014-12-01checkout: support checking out into a new working directoryNguyễn Thái Ngọc Duy1-1/+1
2014-12-01$GIT_COMMON_DIR: a new environment variableNguyễn Thái Ngọc Duy1-0/+34
2014-12-01git_path(): be aware of file relocation in $GIT_DIRNguyễn Thái Ngọc Duy1-2/+47
2014-12-01path.c: group git_path(), git_pathdup() and strbuf_git_path() togetherNguyễn Thái Ngọc Duy1-10/+10
2014-12-01path.c: rename vsnpath() to do_git_path()Nguyễn Thái Ngọc Duy1-4/+4
2014-12-01git_snpath(): retire and replace with strbuf_git_path()Nguyễn Thái Ngọc Duy1-9/+2
2014-12-01path.c: make get_pathname() call sites return const char *Nguyễn Thái Ngọc Duy1-3/+3
2014-12-01path.c: make get_pathname() return strbuf instead of static bufferNguyễn Thái Ngọc Duy1-69/+51
2014-09-02Merge branch 'mm/config-edit-global'Junio C Hamano1-4/+6
2014-07-25home_config_paths(): let the caller ignore xdg pathMatthieu Moy1-4/+6
2014-07-22Merge branch 'rs/code-cleaning'Junio C Hamano1-3/+3
2014-07-21Merge branch 'maint'Junio C Hamano1-3/+1
2014-07-21use xmemdupz() to allocate copies of strings given by start and lengthRené Scharfe1-3/+1
2014-07-17strbuf: use strbuf_addstr() for adding C stringsRené Scharfe1-3/+3
2014-06-10Windows: allow using UNC path for git repositoryCezary Zawadka1-7/+0
2014-03-18Merge branch 'jk/config-path-include-fix' into maintJunio C Hamano1-1/+1
2014-02-27Merge branch 'jk/config-path-include-fix'Junio C Hamano1-1/+1
2014-01-28expand_user_path: do not look at NULL pathJeff King1-1/+1
2013-10-28Merge branch 'jx/relative-path-regression-fix'Junio C Hamano1-0/+65
2013-10-14Use simpler relative_path when set_git_dirJiang Xin1-0/+45
2013-10-14relative_path should honor dos-drive-prefixJiang Xin1-0/+20
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-1/+14
2013-08-02Merge branch 'rj/cygwin-clarify-use-of-cheating-lstat'Junio C Hamano1-8/+1
2013-07-18cygwin: Remove the Win32 l/stat() implementationRamsay Jones1-8/+1
2013-07-15parse_pathspec: make sure the prefix part is wildcard-freeNguyễn Thái Ngọc Duy1-1/+14
2013-06-26path.c: refactor relative_path(), not only strip prefixJiang Xin1-27/+85
2013-04-05path.c: optimize adjust_shared_perm()Torsten Bögershausen1-19/+23
2013-04-05path.c: simplify adjust_shared_perm()Torsten Bögershausen1-20/+7
2013-03-25Make core.sharedRepository work under cygwin 1.7Torsten Bögershausen1-3/+17
2012-10-29longest_ancestor_length(): require prefix list entries to be normalizedMichael Haggerty1-15/+11
2012-10-29longest_ancestor_length(): take a string_list argument for prefixesMichael Haggerty1-13/+9
2012-10-29longest_ancestor_length(): use string_list_split()Michael Haggerty1-7/+11
2012-09-04path.c: Use vsnpath() in the implementation of git_path()Ramsay Jones1-12/+3
2012-09-04path.c: Don't discard the return value of vsnpath()Ramsay Jones1-5/+6
2012-09-04path.c: Remove the 'git_' prefix from a file scope functionRamsay Jones1-3/+3
2012-06-25config: read (but not write) from $XDG_CONFIG_HOME/git/config fileHuynh Khoi Nguyen Nguyen1-0/+41
2012-02-02standardize and improve lookup rules for external local reposJeff King1-2/+5
2011-10-04Learn to handle gitfiles in enter_repoPhil Hord1-1/+7
2011-10-04enter_repo: do not modify inputErik Faye-Lund1-16/+12
2011-08-22read_gitfile_gently(): rename misnamed function to read_gitfile()Junio C Hamano1-1/+1
2011-03-17Name make_*_path functions more accuratelyCarlos Martín Nieto1-1/+1
2010-11-10path helpers: move git_mkstemp* to wrapper.cJonathan Nieder1-113/+0
2010-08-21Merge branch 'hv/submodule-find-ff-merge'Junio C Hamano1-0/+38
2010-07-27Sync with 1.7.0 seriesJunio C Hamano1-0/+2
2010-07-27config --get --path: check for unset $HOMEJonathan Nieder1-0/+2
2010-07-07Teach ref iteration module about submodulesHeiko Voigt1-0/+38
2010-03-08Merge branch 'mm/mkstemps-mode-for-packfiles' into maintJunio C Hamano1-0/+79
2010-03-07Merge branch 'nd/root-git'Junio C Hamano1-0/+7
2010-03-07Merge branch 'mm/mkstemps-mode-for-packfiles'Junio C Hamano1-0/+79
2010-02-22git_mkstemps_mode: don't set errno to EINVAL on exit.Matthieu Moy1-1/+0
2010-02-22git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.Matthieu Moy1-2/+13
2010-02-22Move gitmkstemps to path.cMatthieu Moy1-0/+69
2010-02-16Merge branch 'jc/typo'Junio C Hamano1-1/+1
2010-02-16Move offset_1st_component() to path.cNguyễn Thái Ngọc Duy1-0/+7
2010-02-06setenv(GIT_DIR) clean-upRené Scharfe1-1/+1
2010-02-03Typofixes outside documentation areaJunio C Hamano1-1/+1
2010-01-22ignore duplicated slashes in make_relative_path()Junio C Hamano1-9/+30
2009-11-22Merge branch 'mm/config-pathname-tilde-expand'Junio C Hamano1-33/+50
2009-11-19expand_user_path: expand ~ to $HOME, not to the actual homedir.Matthieu Moy1-4/+9
2009-11-17Expand ~ and ~user in core.excludesfile, commit.templateMatthieu Moy1-34/+46
2009-11-09http-backend: Protect GIT_PROJECT_ROOT from /../ requestsShawn O. Pearce1-0/+47
2009-05-31diff: generate pretty filenames in prep_temp_blob()David Aguilar1-0/+16
2009-03-28set_shared_perm(): sometimes we know what the final mode bits should look likeJunio C Hamano1-9/+16
2009-03-27"core.sharedrepository = 0mode" should set, not loosenJunio C Hamano1-15/+21
2009-02-19Introduce the function strip_path_suffix()Johannes Schindelin1-0/+36
2009-02-12Revert "validate_headref: tighten ref-matching to just branches"Junio C Hamano1-2/+2
2009-02-10Merge branch 'js/maint-1.6.0-path-normalize'Junio C Hamano1-41/+83
2009-02-07Remove unused normalize_absolute_path()Johannes Sixt1-45/+6
2009-02-07Test and fix normalize_path_copy()Johannes Sixt1-11/+5
2009-02-07Fix GIT_CEILING_DIRECTORIES on WindowsRené Scharfe1-5/+6
2009-02-07Move sanitary_path_copy() to path.c and rename it to normalize_path_copy()Johannes Sixt1-0/+86
2009-01-29validate_headref: tighten ref-matching to just branchesJeff King1-2/+2
2008-11-11Fix non-literal format in printf-style callsDaniel Lowe1-2/+2
2008-11-08Merge branch 'ar/maint-mksnpath' into maintJunio C Hamano1-0/+54
2008-11-01fix overlapping memcpy in normalize_absolute_pathJeff King1-1/+1
2008-10-30git_pathdup: returns xstrdup-ed copy of the formatted pathAlex Riesen1-4/+20
2008-10-30Add git_snpath: a .git path formatting routine with output bufferAlex Riesen1-0/+23
2008-10-26Add mksnpath which allows you to specify the output bufferAlex Riesen1-0/+15
2008-08-11Fix typo in comments of longest_ancestor_length()Nguyễn Thái Ngọc Duy1-1/+1
2008-07-25Allow add_path() to add non-existent directories to the pathJohannes Sixt1-36/+0
2008-07-13Merge branch 'maint' to sync with 1.5.6.3Junio C Hamano1-1/+1
2008-07-11Fix backwards-incompatible handling of core.sharedRepositoryPetr Baudis1-1/+1
2008-07-07Merge branch 'dr/ceiling'Junio C Hamano1-0/+96
2008-06-27shrink git-shell by avoiding redundant dependenciesDmitry Potapov1-67/+0
2008-06-19Make git_dir a path relative to work_tree in setup_work_tree()Linus Torvalds1-0/+17
2008-06-08make_nonrelative_path: Use is_absolute_path()Johannes Sixt1-1/+1
2008-06-06Use nonrelative paths instead of absolute paths for cloned repositoriesDaniel Barkalow1-0/+36
2008-05-23Add support for GIT_CEILING_DIRECTORIESDavid Reiss1-0/+43
2008-05-23Implement normalize_absolute_pathDavid Reiss1-0/+53
2008-04-29Make read_in_full() and write_in_full() consistent with xread() and xwrite()Heikki Orsila1-1/+2
2008-04-16Make core.sharedRepository more genericHeikki Orsila1-17/+18
2008-03-05Do not use GUID on dir in git init --shared=all on FreeBSDAlex Riesen1-1/+1
2008-03-02Fix make_absolute_path() for parameters without a slashJohannes Schindelin1-1/+3
2007-08-01Add is_absolute_path() and make_absolute_path()Johannes Schindelin1-0/+65
2007-07-25git_mkstemp(): be careful not to overflow the path buffer.Junio C Hamano1-14/+10
2007-07-02getenv/setenv: use constants if availableMatthias Lederhofer1-1/+1
2007-03-07General const correctness fixesShawn O. Pearce1-1/+1
2007-01-11Merge branch 'jc/detached-head'Junio C Hamano1-8/+18
2007-01-08short i/o: fix calls to read to use xread or read_in_fullAndy Whitcroft1-1/+1
2007-01-08Detached HEAD (experimental)Junio C Hamano1-8/+18
2006-12-20simplify inclusion of system header files.Junio C Hamano1-1/+0
2006-11-05adjust_shared_perm: chmod() only when needed.Junio C Hamano1-1/+1
2006-09-16Allow multiple "git_path()" usesLinus Torvalds1-1/+9
2006-06-24Rename safe_strncpy() to strlcpy().Peter Eriksen1-14/+1