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

Re: Implementing branch attributes in git config

From
Linus Torvalds <torvalds@osdl.org>
Date
May 10, 2006, 15:37 UTC
Message-ID
<Pine.LNX.4.64.0605100823350.3718@g5.osdl.org>
In-Reply-To
<46a038f90605100019q3b44b87kf49e456668f2e249@mail.gmail.com>
On Wed, 10 May 2006, Martin Langhoff wrote:
> 
> Good one. I'm following this thread with interest, but it feels we've
> been attacked by the 'bike shed bug' in the act of redesigning
> Windows.ini.

Sure. It clearly _is_ a bike shed, which is why I posted patches: I think the way to resolve bike sheds is to "just do it". In the kernel, the general rule ends up being "he who writes the code gets to choose how it gets done", because it turns out that there are a lot more people willing to _argue_ about code than there are people willing to _write_ it, and thus that "real code wins" rule actually works very well in practice.

I don't think I've ever really seen an argument where you ended up having seriously competing patches. Yes, you can have patches to do things different ways, but once you have that, it tends to be pretty easy for the maintainer to just draw a line in the sand. And once one patch has been accepted, it's all over.

So the real problem with "bike sheds" is actually when you have a culture of arguing, and not enough of a culture of "just do it".

If you have a "just do it" culture, bike sheds are often good things. If it really _is_ that easy, a bike shed is a perfect opportunity for somebody who isn't all that deeply into a project to make a contribution and start feeling more comfy about it. It obviously didn't happen here, but it's definitely true that a lot of people in the kernel get introduced to doing patches through various "trivial" things.

So don't knock the bike sheds. It's a BSD term, and I think there's a _reason_ why it's a BSD term. Those people seem to sometimes like to argue about theoretical things (or about anything else, for that matter) more than actually getting the damn job done.

> As an end-user, I have personally stayed away from the increasingly
> complex scheme for remotes waiting for it to settle, and stuck with
> the old-styled .git/branches stuff which is slam-dunk simple and it
> just works.

It does work, and I think it's nice in many ways. It was certainly a good way to prototype things.

At the same time, especially with moving things more to C (or almost any other language, for that matter - shell is really pretty special in making it _easier_ to have things in individual files), it's in many ways nicer to have a more structured representation that has a nice fixed interface and a library and known access methods behind it.

And I'm personally actually pretty fed up with the .git/branches/ and .git/remotes/ thing, partly because I can never remember which file is which. I had to look at the code of git-parse-remote.sh to remind me which had what semantics. We could remove the old one entirely, of course (and no, I don't remember which is which now either), and avoid that particular problem, but it kind of soured me on it.

And if we truly have separate files, we should go all the way, and have the good old "one file, one value" rule. Which we don't, and which I think everybody admits would be horrible for this case for users (even if it might be very nice for scripting).

		Linus
Previous: Johannes SchindelinNext: Jakub Narebski
Message 57 of 75 in “Implementing branch attributes in git config”
  1. Pavel RoskinMay 7, 2006
  2. Junio C HamanoMay 7, 2006
  3. Johannes SchindelinMay 8, 2006
  4. Linus TorvaldsMay 8, 2006
  5. Linus TorvaldsMay 8, 2006
  6. Linus TorvaldsMay 8, 2006
  7. Johannes SchindelinMay 8, 2006
  8. Pavel RoskinMay 8, 2006
  9. Johannes SchindelinMay 8, 2006
  10. Pavel RoskinMay 8, 2006
  11. Junio C HamanoMay 8, 2006
  12. Johannes SchindelinMay 8, 2006
  13. Pavel RoskinMay 8, 2006
  14. seanMay 8, 2006
  15. Linus TorvaldsMay 8, 2006
  16. Pavel RoskinMay 8, 2006
  17. seanMay 8, 2006
  18. Pavel RoskinMay 8, 2006
  19. Linus TorvaldsMay 8, 2006
  20. Junio C HamanoMay 8, 2006
  21. seanMay 8, 2006
  22. Johannes SchindelinMay 8, 2006
  23. seanMay 8, 2006
  24. Junio C HamanoMay 8, 2006
  25. seanMay 8, 2006
  26. Daniel BarkalowMay 8, 2006
  27. seanMay 8, 2006
  28. Johannes SchindelinMay 8, 2006
  29. seanMay 9, 2006
  30. Johannes SchindelinMay 9, 2006
  31. Linus TorvaldsMay 9, 2006
  32. seanMay 9, 2006
  33. Junio C HamanoMay 9, 2006
  34. Linus TorvaldsMay 9, 2006
  35. Junio C HamanoMay 9, 2006
  36. Linus TorvaldsMay 9, 2006
  37. Junio C HamanoMay 9, 2006
  38. Linus TorvaldsMay 9, 2006
  39. seanMay 9, 2006
  40. Linus TorvaldsMay 9, 2006
  41. seanMay 9, 2006
  42. Linus TorvaldsMay 9, 2006
  43. Jakub NarebskiMay 9, 2006
  44. Johannes SchindelinMay 9, 2006
  45. Linus TorvaldsMay 9, 2006
  46. Junio C HamanoMay 9, 2006
  47. Linus TorvaldsMay 9, 2006
  48. seanMay 9, 2006
  49. seanMay 9, 2006
  50. Junio C HamanoMay 9, 2006
  51. seanMay 9, 2006
  52. Linus TorvaldsMay 10, 2006
  53. seanMay 10, 2006
  54. Linus TorvaldsMay 10, 2006
  55. Martin LanghoffMay 10, 2006
  56. Johannes SchindelinMay 10, 2006
  57. Linus TorvaldsMay 10, 2006
  58. Jakub NarebskiMay 10, 2006
  59. Martin LanghoffMay 10, 2006
  60. Linus TorvaldsMay 10, 2006
  61. Linus TorvaldsMay 11, 2006
  62. Jeff KingMay 11, 2006
  63. Jeff KingMay 11, 2006
  64. Martin LanghoffMay 11, 2006
  65. Johannes SchindelinMay 11, 2006
  66. Nicolas PitreMay 11, 2006
  67. Jakub NarebskiMay 11, 2006
  68. seanMay 10, 2006
  69. Junio C HamanoMay 11, 2006
  70. Martin WaitzMay 9, 2006
  71. Johannes SchindelinMay 9, 2006
  72. Johannes SchindelinMay 8, 2006
  73. Pavel RoskinMay 9, 2006
  74. seanMay 9, 2006
  75. Pavel RoskinMay 9, 2006

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.