News for hackers. Stuff that matters.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by kungito on Friday November 01, 2019 @09:51AM (#21418744)
Git is the simplest, low friction, low cost, low everything above file storage. How can there be something simpler atop an existing file system (I know there are some versioning file systems but I've never used them). I use git for practically anything I do. I to git init and I have my project versioned and I can but don't have to even add messages to each of my versions. You don't have to use anything else if you don't want to but you have so many options if you need them. You don't have to even use git on line if you don't want but if you do there are multiple (even open source) git repositories with free private repos. What is there not to like?
Re:Linus Torvalds: Git proved I could be more than a one-hit... by rgacote on Friday November 01, 2019 @10:09AM (#21418992)
Mercurial is wonderfully simple, particularly for smaller teams. Also, not being able to throw away branches ensures the project maintains a history of some wrong paths that were pursued.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by jcranmer on Friday November 01, 2019 @09:59AM (#21418845)
> How can there be something simpler atop an existing file system

Mercurial? Similar DVCS concepts, but you no longer have to worry about garbage collection or staging areas...

Re:Linus Torvalds: Git proved I could be more than a one-hit... by kungito on Friday November 01, 2019 @10:03AM (#21418908)
What garbage collection? Isn't staging area actually a feature? I've never used anything else since when I started needing something like 5 years ago git was already a recommended choice, but I also never felt like I needed anything else.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by jcranmer on Friday November 01, 2019 @10:09AM (#21418998)
If your commits are not referenced by a branch or tag, then those are eventually committed. Having to have a branch to keep the commit around means you need to come up with a name for it if you ever want more than one name. When I go back to Mercurial, it's actually quite relieving to not have to come up with a short name to describe what the current work branch is doing, only commit messages.

And no staging area is strictly simpler than having a staging area, which is contrary to your assertion.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by that_jojo on Friday November 01, 2019 @10:57AM (#21419489)
When would you be creating a branch to do work without knowing what work you're doing?
Re:Linus Torvalds: Git proved I could be more than a one-hit... by jcranmer on Friday November 01, 2019 @11:48AM (#21420055)
It's not that I don't know what work I'm doing, it's that I don't know how to give it a unique name.

Sometimes, I try a few different approaches to make something work. Each of these attempts is a different branch--I might need to revisit it, or pull stuff out of it. Good luck staring at a branch name and working out if it's landloop or landloop2 that had the most working version of the code.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by that_jojo on Wednesday November 06, 2019 @08:54AM (#21462565)
Super late, but I think a good approach would be to use an issue/work tracker of really any flavor (even manually), log all of your to-do headings as issues, and then just name each branch after the associated issue/job number.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by recursive on Friday November 01, 2019 @11:38AM (#21419941)
> Isn't staging area actually a feature?

I've been using git for a few years, and staging has been all cost with zero benefit so far.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by compiler-guy on Friday November 01, 2019 @01:20PM (#21421337)
"Isn't staging a feature?"

Well yes, but the GP is claiming that git is the most simple thing above file storage.

Staging may be a feature, but it adds complexity. Perhaps useful complexity, but complexity nonetheless.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by liveoneggs on Friday November 01, 2019 @10:04AM (#21418927)
mercurial with a list of different plugins for each project? no thanks
Re:Linus Torvalds: Git proved I could be more than a one-hit... by pseudalopex on Friday November 01, 2019 @03:41PM (#21422910)
Why would you need a different list of plugins for each project?
Re:Linus Torvalds: Git proved I could be more than a one-hit... by bildung on Friday November 01, 2019 @09:58AM (#21418837)
> I know there are some versioning file systems but I've never used them

But those other systems were the whole point of the post you replied to ;)

Re:Linus Torvalds: Git proved I could be more than a one-hit... by samatman on Friday November 01, 2019 @10:51AM (#21419425)
`.git` is a directory, while in Fossil, the repo is a single SQLite file.

Not making any larger comparison here, what I'm saying is that a single file is simpler than a single directory.