Thread (121 messages) flat view 121 messages, 8 authors, 2022-02-16

Re: [PATCH v5 5/5] worktree: copy sparse-checkout patterns and config on add

From: Eric Sunshine <hidden>
Date: 2022-02-06 19:36:56

On Sun, Feb 6, 2022 at 6:30 AM Eric Sunshine [off-list ref] wrote:
On Mon, Jan 31, 2022 at 10:01 AM Derrick Stolee via GitGitGadget
[off-list ref] wrote:
quoted
+       new=repo/.git/worktrees/worktree/info/sparse-checkout &&
For robustness, this should be using:

    new=$(git rev-parse --git-path info/sparse-checkout)

to retrieve ".git/worktrees/<id>/info/sparse-checkout" rather than
hard-coding "worktree" for "<id>".
Of course, I mean to type:

    new=$(git -C worktree rev-parse --git-path info/sparse-checkout)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help