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

Re: [PATCH 3/5] checkout --orphan: respect -l option always

From
Erick Mattos <erick.mattos@gmail.com>
Date
Jun 3, 2010, 16:28 UTC
Message-ID
<AANLkTikUpyH6nmTfB4XbjQqJHHJOZiea4hn61tIH2ulR@mail.gmail.com>
In-Reply-To
<AANLkTikKAkwHYj6OvfEJM1YE8w2TZL2oeMBrj28V3CwX@mail.gmail.com>
Hi Junio,
Just a small fix...
2010/5/26 Erik Faye-Lund <kusmabite@googlemail.com>:
Show 25 quoted lines
> On Wed, May 26, 2010 at 4:52 PM, Erick Mattos <erick.mattos@gmail.com> wrote:
>> Hi,
>>
>> 2010/5/26 Junio C Hamano <gitster@pobox.com>
>>>
>>> Erick Mattos <erick.mattos@gmail.com> writes:
>>> > @@ -684,8 +709,8 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
>>> >       if (opts.new_orphan_branch) {
>>> >               if (opts.new_branch)
>>> >                       die("--orphan and -b are mutually exclusive");
>>> > -             if (opts.track > 0 || opts.new_branch_log)
>>> > -                     die("--orphan cannot be used with -t or -l");
>>> > +             if (opts.track > 0)
>>> > +                     die("--orphan should not be used with -t");
>>>
>>> Why s/cannot/should not/?  Just being curious.
>>
>> I have typed that text, not changed the original so this is not a fix
>> to your text.  Anyway for me "should not" is more polite, like "you
>> should not yell" meaning you really can not do it.  Or "you should not
>> disrespect the captain".
>
> I don't think it makes sense to try and be polite when we're actually
> refusing... "should not" implies that it possible but not recommended.
> And in this case it's impossible, because we die()...
If you agree, please do that 's/should not/cannot/' on pu.
Regards
Previous: Erick MattosNext: Michael J Gruber
Message 13 of 18 in “checkout --orphan improvements”
  1. 0/5 checkout --orphan improvementsErick Mattos, May 22, 2010
  2. 1/5 Documentation: alter checkout --orphan descriptionErick Mattos, May 22, 2010
  3. 2/5 refs: split log_ref_write logic into log_ref_setupErick Mattos, May 22, 2010
  4. Junio C HamanoMay 26, 2010
  5. Erick MattosMay 26, 2010
  6. Junio C HamanoJun 2, 2010
  7. Erick MattosJun 2, 2010
  8. 3/5 checkout --orphan: respect -l option alwaysErick Mattos, May 22, 2010
  9. Junio C HamanoMay 26, 2010
  10. Erick MattosMay 26, 2010
  11. Erik Faye-LundMay 26, 2010
  12. Erick MattosMay 26, 2010
  13. Erick MattosJun 3, 2010
  14. Michael J GruberMay 26, 2010
  15. Erick MattosMay 26, 2010
  16. Michael J GruberMay 27, 2010
  17. 4/5 t3200: test -l with core.logAllRefUpdates optionsErick Mattos, May 22, 2010
  18. 5/5 bash completion: add --orphan to 'git checkout'Erick Mattos, May 22, 2010

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.