aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-15config: add --comment option to add a commentRalph Seichter1-2/+2
2024-01-26Merge branch 'ps/worktree-refdb-initialization'Junio C Hamano1-11/+16
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-8/+23
2024-01-08worktree: expose interface to look up worktree by namePatrick Steinhardt1-11/+16
2024-01-02Merge branch 'rj/status-bisect-while-rebase'Junio C Hamano1-2/+2
2024-01-02worktree: skip reading HEAD when repairing worktreesPatrick Steinhardt1-8/+23
2023-10-16status: fix branch shown when not only bisectingRubén Justo1-2/+2
2023-08-29worktree: mark unused parameters in noop repair callbackJeff King1-2/+4
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-2/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-1/+1
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-28config: pass kvi to die_bad_number()Glen Choo1-1/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-05-26repository: move 'repository_format_worktree_config' to repo scopeVictoria Dye1-2/+2
2023-03-21treewide: remove cache.h inclusion due to setup.h changesElijah Newren1-1/+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
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+1
2023-03-19Merge branch 'rj/avoid-switching-to-already-used-branch'Junio C Hamano1-32/+31
2023-02-25branch: fix die_if_checked_out() when ignore_current_worktreeRubén Justo1-2/+1
2023-02-25worktree: introduce is_shared_symref()Rubén Justo1-31/+31
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-1/+2
2022-09-19refs: unify parse_worktree_ref() and ref_type()Han-Wen Nienhuys1-52/+7
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-02-25Merge branch 'ds/sparse-checkout-requires-per-worktree-config'Junio C Hamano1-0/+73
2022-02-08worktree: create init_worktree_config()Derrick Stolee1-0/+73
2022-01-26refs API: remove "failure_errno" from refs_resolve_ref_unsafe()Ævar Arnfjörð Bjarmason1-8/+3
2021-12-01worktree: simplify find_shared_symref() memory ownership modelAnders Kaseorg1-6/+2
2021-10-16refs API: post-migration API renaming [2/2]Ævar Arnfjörð Bjarmason1-3/+3
2021-10-16refs API: ignore errno in worktree.c's find_shared_symref()Ævar Arnfjörð Bjarmason1-2/+4
2021-10-16refs API: ignore errno in worktree.c's add_head_info()Ævar Arnfjörð Bjarmason1-2/+4
2021-10-16refs API: remove refs_read_ref_full() wrapperÆvar Arnfjörð Bjarmason1-4/+5
2021-07-13*.c static functions: add missing __attribute__((format))Ævar Arnfjörð Bjarmason1-0/+1
2021-05-13dir: introduce readdir_skip_dot_and_dotdot() helperElijah Newren1-9/+3
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2021-01-30worktree: teach worktree_lock_reason() to gently handle main worktreeRafael Silva1-1/+2
2021-01-30worktree: teach worktree to lazy-load "prunable" reasonRafael Silva1-0/+20
2021-01-30worktree: libify should_prune_worktree()Rafael Silva1-0/+68
2020-12-21worktree: teach `repair` to fix multi-directional breakageEric Sunshine1-0/+41
2020-10-05Merge branch 'ma/worktree-cleanups'Junio C Hamano1-26/+20
2020-09-27worktree: use skip_prefix to parse targetMartin Ågren1-7/+7
2020-09-27worktree: rename copy-pasted variableMartin Ågren1-6/+6
2020-09-27worktree: update renamed variable in commentMartin Ågren1-1/+1
2020-09-27worktree: inline `worktree_ref()` into its only callerMartin Ågren1-11/+6
2020-09-27wt-status: introduce wt_status_state_free_buffers()Martin Ågren1-3/+2
2020-08-31worktree: teach "repair" to fix outgoing links to worktreesEric Sunshine1-0/+74
2020-08-31worktree: teach "repair" to fix worktree back-links to main worktreeEric Sunshine1-0/+61
2020-07-31worktree: retire special-case normalization of main worktree pathEric Sunshine1-4/+2
2020-07-31worktree: drop bogus and unnecessary path mungingEric Sunshine1-6/+1
2020-07-31worktree: drop unused code from get_linked_worktree()Eric Sunshine1-3/+0
2020-07-31worktree: drop pointless strbuf_release()Eric Sunshine1-2/+0
2020-07-06Merge branch 'es/worktree-code-cleanup'Junio C Hamano1-3/+3
2020-07-06Merge branch 'es/get-worktrees-unsort'Junio C Hamano1-17/+3
2020-06-24worktree: avoid dead-code in conditionalEric Sunshine1-3/+3
2020-06-22worktree: drop get_worktrees() unused 'flags' argumentEric Sunshine1-3/+3
2020-06-22worktree: drop get_worktrees() special-purpose sorting optionEric Sunshine1-14/+0
2020-03-26Merge branch 'bc/sha-256-part-1-of-4'Junio C Hamano1-6/+4
2020-03-10real_path_if_valid(): remove unsafe APIAlexandr Miloslavskiy1-2/+5
2020-03-10real_path: remove unsafe APIAlexandr Miloslavskiy1-1/+4
2020-03-05Merge branch 'hv/receive-denycurrent-everywhere'Junio C Hamano1-0/+1
2020-03-05Merge branch 'es/worktree-avoid-duplication-fix'Junio C Hamano1-6/+10
2020-02-24worktree: add utility to find worktree by pathnameEric Sunshine1-6/+10
2020-02-24worktree: drop unused code from get_main_worktree()Eric Sunshine1-4/+0
2020-02-24get_main_worktree(): allow it to be called in the Git directoryHariom Verma1-0/+1
2020-02-24worktree: allow repository version 1brian m. carlson1-6/+4
2019-06-13Merge branch 'nd/corrupt-worktrees'Junio C Hamano1-2/+5
2019-05-15worktree add: be tolerant of corrupt worktreesNguyễn Thái Ngọc Duy1-2/+5
2019-05-09Merge branch 'jt/submodule-repo-is-with-worktree'Junio C Hamano1-4/+10
2019-04-21worktree: update is_bare heuristicsJonathan Tan1-4/+10
2019-03-01setup: fix memory leaks with `struct repository_format`Martin Ågren1-1/+3
2018-11-13Merge branch 'nd/per-worktree-ref-iteration'Junio C Hamano1-3/+76
2018-10-31worktree: rename is_worktree_locked to worktree_lock_reasonNickolai Belakovski1-1/+1
2018-10-22revision.c: better error reporting on ref from different worktreesNguyễn Thái Ngọc Duy1-3/+46
2018-10-22refs: new ref types to make per-worktree refs visible to all worktreesNguyễn Thái Ngọc Duy1-0/+30
2018-08-30worktree: don't die() in library function find_worktree()Eric Sunshine1-1/+5
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2018-02-12worktree remove: allow it when $GIT_WORK_TREE is already goneNguyễn Thái Ngọc Duy1-1/+8
2018-02-12worktree.c: add update_worktree_location()Nguyễn Thái Ngọc Duy1-0/+17
2018-01-24worktree.c: add validate_worktree()Nguyễn Thái Ngọc Duy1-0/+72
2017-11-06Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-10-21worktree: handle broken symrefs in find_shared_symref()Jeff King1-1/+2
2017-10-16refs: convert resolve_ref_unsafe to struct object_idbrian m. carlson1-1/+1
2017-10-16worktree: convert struct worktree to object_idbrian m. carlson1-1/+1
2017-09-24refs: pass NULL to refs_resolve_ref_unsafe() if hash is not neededRené Scharfe1-2/+1
2017-09-19Merge branch 'nd/prune-in-worktree'Junio C Hamano1-0/+22
2017-09-10Merge branch 'nd/worktree-kill-parse-ref'Junio C Hamano1-1/+1
2017-08-24revision.c: --all adds HEAD from all worktreesNguyễn Thái Ngọc Duy1-0/+22
2017-08-24branch: fix branch renaming not updating HEADs correctlyNguyễn Thái Ngọc Duy1-1/+1
2017-06-23path: convert strbuf_git_common_path to take a 'struct repository'Brandon Williams1-1/+2
2017-05-29Merge branch 'js/plug-leaks'Junio C Hamano1-1/+1
2017-05-16Merge branch 'nd/worktree-kill-parse-ref'Junio C Hamano1-75/+27
2017-05-08submodule_uses_worktrees(): plug memory leakJohannes Schindelin1-1/+1
2017-04-24worktree.c: kill parse_ref() in favor of refs_resolve_ref_unsafe()Nguyễn Thái Ngọc Duy1-75/+27
2017-03-21prefix_filename: return newly allocated stringJeff King1-1/+4
2017-03-21prefix_filename: drop length parameterJeff King1-1/+1
2017-03-12Merge branch 'js/realpath-pathdup-fix'Junio C Hamano1-1/+1
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-1/+1
2017-02-27cocci: use ALLOC_ARRAYRené Scharfe1-1/+1
2017-02-02Merge branch 'rs/absolute-pathdup'Junio C Hamano1-1/+1
2017-01-27use absolute_pathdup()René Scharfe1-1/+1
2017-01-18Merge branch 'bw/grep-recurse-submodules'Junio C Hamano1-1/+1
2016-12-27worktree: initialize return value for submodule_uses_worktreesStefan Beller1-1/+1
2016-12-12real_path: have callers use real_pathdup and strbuf_realpathBrandon Williams1-1/+1
2016-12-12worktree: check if a submodule uses worktreesStefan Beller1-0/+50
2016-11-28worktree list: keep the list sortedNguyễn Thái Ngọc Duy1-0/+14
2016-11-28worktree.c: get_worktrees() takes a new flag argumentNguyễn Thái Ngọc Duy1-2/+2
2016-11-28get_worktrees() must return main worktree as first item even on errorNguyễn Thái Ngọc Duy1-7/+3
2016-11-23worktree.c: zero new 'struct worktree' on allocationNguyễn Thái Ngọc Duy1-12/+2
2016-10-14worktree: allow the main brach of a bare repository to be checked outDennis Kaarsemaker1-0/+2
2016-07-28Merge branch 'nd/worktree-lock'Junio C Hamano1-0/+77
2016-07-25Merge branch 'rs/worktree-use-strbuf-absolute-path'Junio C Hamano1-2/+2
2016-07-12worktree: use strbuf_add_absolute_path() directlyRené Scharfe1-2/+2
2016-07-08worktree.c: find_worktree() search by path suffixNguyễn Thái Ngọc Duy1-0/+29
2016-07-06Merge branch 'nd/worktree-cleanup-post-head-protection'Junio C Hamano1-10/+8
2016-06-13worktree.c: add is_worktree_locked()Nguyễn Thái Ngọc Duy1-0/+28
2016-06-03worktree.c: add is_main_worktree()Nguyễn Thái Ngọc Duy1-0/+5
2016-06-03worktree.c: add find_worktree()Nguyễn Thái Ngọc Duy1-0/+15
2016-05-24worktree.c: use is_dot_or_dotdot()Nguyễn Thái Ngọc Duy1-1/+1
2016-05-24worktree.c: rewrite mark_current_worktree() to avoid strbufNguyễn Thái Ngọc Duy1-9/+7
2016-05-23Merge branch 'nd/worktree-various-heads'Junio C Hamano1-18/+104
2016-05-06typofix: assorted typofixes in comments, documentation and messagesLi Peng1-1/+1
2016-04-22branch: do not rename a branch under bisect or rebaseNguyễn Thái Ngọc Duy1-4/+4
2016-04-22worktree.c: check whether branch is bisected in another worktreeNguyễn Thái Ngọc Duy1-0/+19
2016-04-22worktree.c: check whether branch is rebased in another worktreeNguyễn Thái Ngọc Duy1-0/+32
2016-04-22worktree.c: avoid referencing to worktrees[i] multiple timesNguyễn Thái Ngọc Duy1-2/+4
2016-04-22worktree.c: mark current worktreeNguyễn Thái Ngọc Duy1-0/+24
2016-04-22worktree.c: make find_shared_symref() return struct worktree *Nguyễn Thái Ngọc Duy1-5/+9
2016-04-22worktree.c: store "id" instead of "git_dir"Nguyễn Thái Ngọc Duy1-13/+18
2016-01-19worktree.c: fix indentationNguyễn Thái Ngọc Duy1-4/+4
2015-10-08worktree: add details to the worktree structMichael Rappazzo1-11/+44
2015-10-08worktree: add a function to get worktree detailsMichael Rappazzo1-46/+108
2015-10-08worktree: refactor find_linked_symref functionMichael Rappazzo1-27/+69
2015-10-02worktree: add top-level worktree.cMichael Rappazzo1-0/+82