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

Re: mtimes of working files

From
David Woodhouse <dwmw2@infradead.org>
Date
Jul 13, 2007, 23:46 UTC
Message-ID
<1184370414.2785.79.camel@shinybook.infradead.org>
In-Reply-To
<alpine.LFD.0.999.0707131617270.20061@woody.linux-foundation.org>
On Fri, 2007-07-13 at 16:18 -0700, Linus Torvalds wrote:
> Why would anybody force you to do that?
> 
> The "switch between branchs in the same repo" is really convenient.
> But nobody *forces* you to do it. 

This is true. I already mirror a bunch of CVS and SVN repositories into git so that I can use them without too much pain¹, and I can do the same for git trees which use branches too; mirroring them into a bunch of separate trees for easy access.

On the occasions I actually try to _use_ branches, I find it very suboptimal. Perhaps it's just because I'm stupid. I'm sure that's why I ended up committing changes to the wrong branch. But having to rebuild (even with ccache) after changing branches is a PITA. Just changing branches at all is a PITA if you have uncommitted changes (which I usually do because I've usually tested _some_ random patch in a build tree for the hardware which is closest to hand). Pulling a whole bunch of unwanted changes on the 'development' branch while on GPRS, when all I really needed was a single commit from the 'stable' branch also didn't amuse me, although I'm sure if I had the time to play with it I'd have been able to avoid that.

I can, and do, mirror stuff from all kinds of suboptimal version control systems into single-branch git trees. And I include multi-branched git trees in my definition of 'suboptimal'. My ability to do that doesn't really help the newbies who are expected with branches, though.

I just wish people would make stuff available on the _servers_ in separate trees rather than in branches -- if some people prefer branches locally then that's their option; at the moment we kind of force people into it. They _could_ avoid it but they'd have to know what they're doing.

But I didn't really mean to start an argument; it's just my opinion.
-- 
dwmw2

¹ and I'd do the same for Hg if I could get hg2git to work.
Previous: Linus TorvaldsNext: Linus Torvalds
Message 11 of 24 in “mtimes of working files”
  1. Yakov LernerJul 11, 2007
  2. Johannes SchindelinJul 11, 2007
  3. Yakov LernerJul 11, 2007
  4. Johannes SchindelinJul 11, 2007
  5. Jan HudecJul 11, 2007
  6. Andy ParkinsJul 12, 2007
  7. David WoodhouseJul 12, 2007
  8. Theodore TsoJul 13, 2007
  9. David WoodhouseJul 13, 2007
  10. Linus TorvaldsJul 13, 2007
  11. David WoodhouseJul 13, 2007
  12. Linus TorvaldsJul 14, 2007
  13. David WoodhouseJul 14, 2007
  14. J. Bruce FieldsJul 14, 2007
  15. David WoodhouseJul 14, 2007
  16. Jakub NarebskiJul 14, 2007
  17. Robin RosenbergJul 14, 2007
  18. Julian PhillipsJul 14, 2007
  19. Jan HudecJul 14, 2007
  20. Julian PhillipsJul 14, 2007
  21. Daniel BarkalowJul 15, 2007
  22. Eric WongJul 12, 2007
  23. Randal L. SchwartzJul 12, 2007
  24. Eric WongJul 12, 2007

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.