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

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2019, 17:44 UTC
Message-ID
<xmqq7e7mdyig.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<001e01d54ebb$9a1ab4b0$ce501e10$@nexbridge.com>
"Randall S. Becker" <rsbecker@nexbridge.com> writes:
Show 11 quoted lines
> On 01 Aug 2019 13:05:12, Junio wrote:
>> >> *snip*
>
> I think this got missed in the shuffle, but I am getting questions
> about the topic from my own team that I cannot answer.
>
> I noticed that the switch and restore commands are now available
> in 2.23.0 but are not discussed in recent What's Cooking or Git
> Rev (or I blithely missed them). The question from my team is what
> are the plans for deprecating checkout. They have loads of scripts
> and want to plan for moving over.

The two new commands were done in response to a common "checkout does two different things, either checkout a branch in order to start working on it, or checkout paths into the current workspace to work on them" complaint. Those who are used to and are OK with the "git" command that changes behaviour based on the rest of args (i.e. "checkout <branchname>" and "checkout [<tree-ish>] <pathspec>" are the ways to obtain these two behaviours) can safely keep using the command they are familiar with.

I do not think there currently is any plan to deprecate checkout.
Previous: Randall S. BeckerNext: Randall S. Becker
Message 26 of 27 in “What's cooking in git.git (Jul 2019, #06; Thu, 25)”
  1. Junio C HamanoJul 26, 2019
  2. Johannes SchindelinJul 26, 2019
  3. Junio C HamanoJul 26, 2019
  4. Rohit AshiwalJul 27, 2019
  5. Elijah NewrenJul 27, 2019
  6. Rohit AshiwalJul 27, 2019
  7. Elijah NewrenJul 27, 2019
  8. Carlo ArenasJul 28, 2019
  9. Taylor BlauAug 9, 2019
  10. Ariadne ConillAug 9, 2019
  11. Taylor BlauAug 9, 2019
  12. Ariadne ConillAug 9, 2019
  13. Phil HordAug 9, 2019
  14. Ariadne ConillAug 9, 2019
  15. Taylor BlauAug 9, 2019
  16. Jeff KingAug 9, 2019
  17. Phil HordAug 9, 2019
  18. Randall S. BeckerAug 9, 2019
  19. Jeff KingAug 9, 2019
  20. Randall S. BeckerAug 9, 2019
  21. Junio C HamanoAug 9, 2019
  22. Phil HordAug 9, 2019
  23. Jeff KingAug 10, 2019
  24. Junio C HamanoAug 12, 2019
  25. Randall S. BeckerAug 12, 2019
  26. Junio C HamanoAug 9, 2019
  27. Randall S. BeckerAug 9, 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.