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

Re: [PATCH 2/2] DEPRECATION: warn about 'git checkout -b'

From
Elijah Newren <newren@gmail.com>
Date
Aug 22, 2019, 03:03 UTC
Message-ID
<CABPp-BHwhXVz7+GXdTdBQ-0POcr7Mh7A9ut_gw7syxE7rcXx+A@mail.gmail.com>
In-Reply-To
<dd3b5120077dd0414c62b8deaeaaffa40bc47736.1566415112.git.gitgitgadget@gmail.com>

On Wed, Aug 21, 2019 at 12:21 PM Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 23 quoted lines
>
> From: Derrick Stolee <dstolee@microsoft.com>
>
> Recommend that users use 'git switch -c' instead.
>
> Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
> ---
>  builtin/.checkout.c.swp | Bin 77824 -> 0 bytes
>  builtin/checkout.c      |   9 ++++++++-
>  2 files changed, 8 insertions(+), 1 deletion(-)
>  delete mode 100644 builtin/.checkout.c.swp
>
> diff --git a/builtin/.checkout.c.swp b/builtin/.checkout.c.swp
> deleted file mode 100644
> index f6dad4abb02c265ee66b3f6f76d00d59b9b524a4..0000000000000000000000000000000000000000
> GIT binary patch
> literal 0
> HcmV?d00001
>
> literal 77824
> zcmeIb37F(pRrf#a46<X03c_z1GgCe3>dYjdA(>2=r6*}KnI2}zLK2GV?&_Y(bXPT1
> z)icux34uRC00rR{;pJ5jL_ico7FiV85d;D8CG1O3By6%HioE<k-*fK$ZB^AXi9sKq
> zXXeQ_-ThncdhWSryXQB(>5|Edle5P+t>NE&*Q|N(#aCVRsr$ZX%_F;O)^vOAg+@a+
<snip>

You may want to add a local commit hook that prevents commiting vim swp files, or adding them to a global excludes file or something. :-)

Previous: Derrick Stolee via GitGitGadgetNext: SZEDER Gábor
Message 6 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.