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

Re: [PATCH 1/2] Revert "switch: no worktree status unless real branch switch happens"

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 21, 2019, 22:15 UTC
Message-ID
<20190821221504.GA20404@szeder.dev>
In-Reply-To
<538420ffd575f1705e9fb764f9d86e5d4d7f25ad.1566415112.git.gitgitgadget@gmail.com>
On Wed, Aug 21, 2019 at 12:18:33PM -0700, Derrick Stolee via GitGitGadget wrote:
> This reverts commit 65f099b3988198f0fdf3ef7a21dc01c556d21fff, which
> removed logic for avoiding extra cost in "git checkout -b" in favor
> of the new "git switch -c". This will cause a performance issue for
> users in large repos.

It always makes me sad when I see a pull request, where all the relevant information is only included in the PR, which will not be part of the history, but not in the commit messages...

>  builtin/.checkout.c.swp           | Bin 0 -> 77824 bytes
Show 7 quoted lines
> diff --git a/builtin/.checkout.c.swp b/builtin/.checkout.c.swp
> new file mode 100644
> index 0000000000000000000000000000000000000000..f6dad4abb02c265ee66b3f6f76d00d59b9b524a4
> GIT binary patch
> literal 77824
> zcmeIb37F(pRrf#a46<X03c_z1GgCe3>dYjdA(>2=r6*}KnI2}zLK2GV?&_Y(bXPT1
> z)icux34uRC00rR{;pJ5jL_ico7FiV85d;D8CG1O3By6%HioE<k-*fK$ZB^AXi9sKq
Uh-oh.
Previous: Derrick Stolee via GitGitGadgetNext: Derrick Stolee
Message 3 of 11 in “[RFC] Revert/delay performance regression in 'git checkout -b'”
  1. 0/2 [RFC] Revert/delay performance regression in 'git checkout -b'Derrick Stolee via GitGitGadget, Aug 21, 2019
  2. 1/2 Revert "switch: no worktree status unless real branch switch happens"Derrick Stolee via GitGitGadget, Aug 21, 2019
  3. SZEDER GáborAug 21, 2019
  4. Derrick StoleeAug 22, 2019
  5. 2/2 DEPRECATION: warn about 'git checkout -b'Derrick Stolee via GitGitGadget, Aug 21, 2019
  6. Elijah NewrenAug 22, 2019
  7. SZEDER GáborAug 21, 2019
  8. Elijah NewrenAug 22, 2019
  9. Derrick StoleeAug 22, 2019
  10. Elijah NewrenAug 22, 2019
  11. Derrick StoleeAug 22, 2019

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.