Re: [PATCH v2 23/32] prune: strategies for linked checkouts
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 21, 2014, 03:01 UTC
- Message-ID
- <CAPig+cRX6z2ReKqES_2SP4mVruCDNRyo62_deo3ukuUYcYaKiw@mail.gmail.com>
- In-Reply-To
- <CACsJy8BLEfB6RQZTxqF82-tJmKQgnNC12QvKu8KZq=Vr059s3g@mail.gmail.com>
On Sat, Sep 20, 2014 at 10:54 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 12 quoted lines
> On Fri, Sep 12, 2014 at 10:06 AM, Eric Sunshine <sunshine@sunshineco.com> wrote: >> One minor addition for clarification would be to mention that the 'git >> prune --worktrees' invocation applies to the main worktree: >> >> When you are done with a linked working tree, you can simply delete >> it. You can clean up any stale $GIT_DIR/worktrees entries via >> `git prune --worktrees` in the main worktree. > > > The command should work from any worktree (of course not the worktree > that you just deleted). I try to make all operations work on all > worktrees. How should I write this?
I realized that a bit after writing the above. You could qualify it as:
When you are done with a linked working tree, you can simply delete
it. You can clean up any stale $GIT_DIR/worktrees entries via
`git prune --worktrees` in the main worktree or any linked tree.But the "...in the main worktree or any linked tree" is likely redundant, in which case Marc's rewrite is probably sufficient.