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

Re: Regulator updates for 3.3

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jan 11, 2012, 03:14 UTC
Message-ID
<CA+55aFzuGtJkQFDooSGWQ2_NiJVHN2E7S5dmOnWTYn8_s8Gg3g@mail.gmail.com>
In-Reply-To
<7vehv77xeq.fsf@alter.siamese.dyndns.org>
On Tue, Jan 10, 2012 at 7:03 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
>>
>> I really wonder. Because not being default will always lead to really
>> odd ways of saying "it should have been default, so we'll make up
>> these complex and arbitrary special rules" (like the ones you were
>> starting to outline).
>
> Hrm. Lack of any quoted line other than the first line from my message,
> together with (c) above, makes me suspect that you did not read beyond the
> first line before composing this message you are responding to.

No. See again. I did read your suggestion, and that's where the "we'll make up these complex and arbitrary special rules" comment comes from. Did I mis-understand it?

I think it's a *horrible* idea to go down the road or some branch-specific configurations and then, and I quote:

  "depending on the combination of what is being merged into what,
toggle the --edit option by default"
THAT is the kind of design that sounds crazy.

Instead, just make editing the default. No ifs, buts, or maybe. No configuration, no complexities - just make it act the same way our pager logic acts (ie redirecting stdin/stdout obviously shuts down the pager, and equally obviously needs to shut down the editor).

Then, the --edit/--no-edit flags are for future users that want to make it explicit. But they aren't about rules, they are about just making very explicit statements of "I don't want the editor".

The (b) thing I suggested was for "work around for people who have legacy cases that they don't want to make explicit". I guess you could count that as some rule, but I really think it's more of a "ok, we had bad legacy behavior, and now we have scripts that depended on that bad legacy".

But the notion of complex rules? That sounds really really bad. I'd much rather get *rid* of the one complex rule we have (the "merging a tag implies --edit"). That rule is already a hack.

                   Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 20 in “Re: Regulator updates for 3.3”
  1. Linus TorvaldsJan 10, 2012
  2. Mark BrownJan 10, 2012
  3. Junio C HamanoJan 11, 2012
  4. Linus TorvaldsJan 11, 2012
  5. Junio C HamanoJan 11, 2012
  6. Linus TorvaldsJan 11, 2012
  7. Re* Regulator updates for 3.3Junio C Hamano, Jan 11, 2012
  8. Phil HordJan 11, 2012
  9. Linus TorvaldsJan 11, 2012
  10. Pete HarlanJan 16, 2012
  11. Junio C HamanoJan 16, 2012
  12. Martin FickJan 16, 2012
  13. Pete HarlanJan 17, 2012
  14. Junio C HamanoJan 17, 2012
  15. Linus TorvaldsJan 11, 2012
  16. Paul GortmakerJan 11, 2012
  17. Junio C HamanoJan 13, 2012
  18. Nguyen Thai Ngoc DuyJan 13, 2012
  19. Linus TorvaldsJan 13, 2012
  20. Miles BaderJan 17, 2012

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.