git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: rebase not honoring core.worktree pointing elsewhere

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 2, 2010, 01:21 UTC
Message-ID
<7v1v7434h8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTi=ejRcnz+83zc2Z-6etUGMsBSw1FFUY0JNFRFGB@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> Then, yes, rebase should be updated to use worktree even if it's
> outside cwd. I'm not sure how to do it properly in git-rebase.sh
> though.  The requirement "require_work_tree" can be loosen a bit.

require-work-tree traditionally meant "you must be inside the working tree, you could be in a subdirectory of it", but as long as the command is about the whole tree operation (which rebase is) and takes no pathname relative to the $(cwd) as an argument (which rebase does not), there is no strong reason why you should be _inside_ the working tree. For such commands, require-work-tree should mean "you must have a working tree, and make it known where it is to git", nothing more.

Previous: Nguyen Thai Ngoc DuyNext: Paul Drews
Message 4 of 10 in “rebase not honoring core.worktree pointing elsewhere”
  1. Paul DrewsNov 1, 2010
  2. Sverre RabbelierNov 1, 2010
  3. Nguyen Thai Ngoc DuyNov 2, 2010
  4. Junio C HamanoNov 2, 2010
  5. Paul DrewsNov 2, 2010
  6. Nguyen Thai Ngoc DuyNov 3, 2010
  7. Paul DrewsNov 3, 2010
  8. Nguyen Thai Ngoc DuyNov 3, 2010
  9. Jonathan NiederNov 3, 2010
  10. Nguyen Thai Ngoc DuyNov 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.