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

Re: [PATCH 10/11] push: flip !triangular for centralized

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 28, 2021, 21:57 UTC
Message-ID
<60b1674ca4f58_2a3717208ec@natae.notmuch>
In-Reply-To
<CABPp-BHs_id3kOHgBWCK0QjviuRu7Dgbq5iB7z5=RZDOX-ontA@mail.gmail.com>
Elijah Newren wrote:
Show 8 quoted lines
> On Fri, May 28, 2021 at 1:10 PM Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
> >
> > Git is a *distributed* version control system, centralized workflows are
> > the uncommon case, where we do need to do extra checks.
> 
> The commit message seemed slightly funny to me, though I'm not sure
> why.
I mean, in my mind I have present two facts:
  1. Linus Torvalds explained that the whole point of Git was to have a
     decentralized VCS [1]. It's not just an important aspect; it's
     crucial.
    If we never get past [the part where I explain distribution], I'd be
    fine with that...
    If you are not distributed, you are not worth using. It's that
    simple.
    I think this is a huge issue and that *alone* should mean that every
    single open source [project] should never use anything but a
    distributed model...
  2. Git doesn't actually have great support for "triangular workflows".

So I do find it funny that the boolean is called "triangular", when that's supposed to be the whole point from the creator.

Maybe some of that spills out into the rhetoric of the commit message.
Show 6 quoted lines
> ...I think the code is slightly easier to read and reason about since
> it removes the double negative.  In particular, when someone reading
> the code sees !triangular, and doesn't know or remember the meaning,
> they have to translate that to !(remote != remote_get(NULL)).
> centralized and !centralized do not have that same problem.  So, I
> like the newer version.

To my mind it's not a slight thing at all. Every time I read if (triangular) I have to stop and translate... Oh, they mean using git in the way it was the whole point of starting the project... So they actually mean not using it in that *other* way.

Cheers.
[1] https://www.youtube.com/watch?v=4XpnKHJAok8
-- 
Felipe Contreras
Previous: Elijah NewrenNext: Elijah Newren
Message 21 of 24 in “Unconvolutize push.default=simple”
  1. 00/11 Unconvolutize push.default=simpleFelipe Contreras, May 28, 2021
  2. 01/11 push: hedge code of default=simpleFelipe Contreras, May 28, 2021
  3. 02/11 push: move code to setup_push_simple()Felipe Contreras, May 28, 2021
  4. 03/11 push: reorganize setup_push_simple()Felipe Contreras, May 28, 2021
  5. Elijah NewrenMay 28, 2021
  6. Felipe ContrerasMay 28, 2021
  7. Elijah NewrenMay 28, 2021
  8. 04/11 push: simplify setup_push_simple()Felipe Contreras, May 28, 2021
  9. Elijah NewrenMay 28, 2021
  10. Felipe ContrerasMay 28, 2021
  11. 05/11 push: remove unused code in setup_push_upstream()Felipe Contreras, May 28, 2021
  12. 06/11 push: merge current and simpleFelipe Contreras, May 28, 2021
  13. 07/11 push: remove redundant checkFelipe Contreras, May 28, 2021
  14. 08/11 push: fix Yoda conditionFelipe Contreras, May 28, 2021
  15. 09/11 push: remove trivial functionFelipe Contreras, May 28, 2021
  16. 11/11 doc: push: explain default=simple correctlyFelipe Contreras, May 28, 2021
  17. Elijah NewrenMay 28, 2021
  18. Bagas SanjayaMay 29, 2021
  19. 10/11 push: flip !triangular for centralizedFelipe Contreras, May 28, 2021
  20. Elijah NewrenMay 28, 2021
  21. Felipe ContrerasMay 28, 2021
  22. Elijah NewrenMay 28, 2021
  23. Felipe ContrerasMay 28, 2021
  24. Elijah NewrenMay 28, 2021

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.