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

Re: [PATCH v2] reset: optionally setup worktree and refresh index on --mixed

From
Patrick Palka <patrick@parcs.ath.cx>
Date
Feb 16, 2014, 18:19 UTC
Message-ID
<CA+C-WL9_WC7TVGJ7yhRM6T6zJ5Q+YGhPODU-vJsu53SOSs2cRg@mail.gmail.com>
In-Reply-To
<1392517683-29518-1-git-send-email-pclouds@gmail.com>
On Sat, Feb 15, 2014 at 9:28 PM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 9 quoted lines
> Refreshing index requires work tree. So we have to options: always set
> up work tree (and refuse to reset if failing to do so), or make
> refreshing index optional.
>
> As refreshing index is not the main task, it makes more sense to make
> it optional.
>
> Reported-by: Patrick Palka <patrick@parcs.ath.cx>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thanks!  I can confirm that this change fixes my use case.
Previous: Eric Sunshine
Message 6 of 6 in “git-reset does not seem to respect GIT_WORK_TREE”
  1. Patrick PalkaFeb 14, 2014
  2. reset: setup worktree on --mixedNguyễn Thái Ngọc Duy, Feb 15, 2014
  3. Duy NguyenFeb 15, 2014
  4. reset: optionally setup worktree and refresh index on --mixedNguyễn Thái Ngọc Duy, Feb 16, 2014
  5. Eric SunshineFeb 16, 2014
  6. Patrick PalkaFeb 16, 2014

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.