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

Re: [PATCH 1/1] checkout: add simple check for 'git checkout -b'

From
Derrick Stolee <stolee@gmail.com>
Date
Aug 30, 2019, 16:56 UTC
Message-ID
<8bf76fcf-539c-6fea-170e-61fc81822ef0@gmail.com>
In-Reply-To
<20190830004339.GA34082@syl.lan>
On 8/29/2019 8:43 PM, Taylor Blau wrote:
Show 18 quoted lines
> Hi Elijah,
> 
> On Thu, Aug 29, 2019 at 05:19:44PM -0700, Elijah Newren wrote:
>> Personally, although I understand the desire to support any possible
>> cases in general, *this is a performance hack*.  As such, it should be
>> as simple and localized as possible.  I don't think supporting
>> old-style stuck flags (-b$BRANCH) is worth complicating this.  I'm
>> even leery of adding support for --track (do any users of huge repos
>> use -b with --track?  Does anyone at all use --track anymore?  I'm not
>> sure I've ever seen any user use that flag in the last 10 years other
>> than myself.)  Besides, in the *worst* possible case, the command the
>> user specifies works just fine...it just takes a little longer.  My
>> opinion is that Stolee's patch is perfect as-is and should not be
>> generalized at all.
> 
> I wholeheartedly agree with this, and pledge my $.02 towards it as well.
> Now with a combined total of $.04, I think that this patch is ready for
> queueing as-is.
Thanks, both!
Previous: Taylor BlauNext: Junio C Hamano
Message 10 of 11 in “checkout: add simple check for 'git checkout -b'”
  1. 0/1 checkout: add simple check for 'git checkout -b'Derrick Stolee via GitGitGadget, Aug 29, 2019
  2. 1/1 checkout: add simple check for 'git checkout -b'Derrick Stolee via GitGitGadget, Aug 29, 2019
  3. Elijah NewrenAug 29, 2019
  4. Phillip WoodAug 29, 2019
  5. Derrick StoleeAug 29, 2019
  6. Pratyush YadavAug 29, 2019
  7. Pratyush YadavAug 29, 2019
  8. Elijah NewrenAug 30, 2019
  9. Taylor BlauAug 30, 2019
  10. Derrick StoleeAug 30, 2019
  11. Junio C HamanoAug 30, 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.