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

Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Sep 5, 2018, 09:14 UTC
Message-ID
<CAPig+cTQLED6P2AWrxU=pvNc6WzO-5YVsPNh3fg28LdZqU15AA@mail.gmail.com>
In-Reply-To
<xmqqmusw6gbo.fsf@gitster-ct.c.googlers.com>
On Tue, Sep 4, 2018 at 6:36 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> * es/worktree-forced-ops-fix (2018-08-30) 9 commits
>  - worktree: delete .git/worktrees if empty after 'remove'
>  - worktree: teach 'remove' to override lock when --force given twice
>  - worktree: teach 'move' to override lock when --force given twice
>  - worktree: teach 'add' to respect --force for registered but missing path
>  - worktree: disallow adding same path multiple times
>  - worktree: prepare for more checks of whether path can become worktree
>  - worktree: generalize delete_git_dir() to reduce code duplication
>  - worktree: move delete_git_dir() earlier in file for upcoming new callers
>  - worktree: don't die() in library function find_worktree()
>
>  Various subcommands of "git worktree" take '--force' but did not
>  behave sensibly, which has been corrected.

This description mischaracterizes what these changes are about. The primary intent of this series is to fix a bug in which the same path can be registered under multiple worktree entries.

As for --force, it worked perfectly fine for the couple git-worktree subcommands which accepted it. The patches in this series dealing with --force are merely extending it to other subcommands or to other use-cases.

So, perhaps rewrite this description like this:
    Fix a bug in which the same path could be registered under
    multiple worktree entries if the patch was missing (for instance,
    was removed manually).
    Also, as a convenience, expand the number of cases in which
    --force is applicable.
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 19 in “What's cooking in git.git (Sep 2018, #01; Tue, 4)”
  1. Junio C HamanoSep 4, 2018
  2. Ævar Arnfjörð BjarmasonSep 5, 2018
  3. Eric SunshineSep 5, 2018
  4. Ævar Arnfjörð BjarmasonSep 5, 2018
  5. Ævar Arnfjörð BjarmasonNov 24, 2018
  6. Torsten BögershausenNov 25, 2018
  7. Torsten BögershausenNov 25, 2018
  8. Ævar Arnfjörð BjarmasonNov 25, 2018
  9. Junio C HamanoSep 5, 2018
  10. Eric SunshineSep 5, 2018
  11. Junio C HamanoSep 5, 2018
  12. Eric SunshineSep 5, 2018
  13. Eric SunshineSep 5, 2018
  14. Jeff KingSep 5, 2018
  15. Junio C HamanoSep 5, 2018
  16. jc/rebase-in-c-9-fixes, was Re: What's cooking in git.git (Sep 2018, #01; Tue, 4)Johannes Schindelin, Sep 5, 2018
  17. Junio C HamanoSep 5, 2018
  18. Duy NguyenSep 5, 2018
  19. SZEDER GáborSep 5, 2018

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.