News for hackers. Stuff that matters.
Re:Fossil versus Git by bradley13 on Saturday September 23, 2023 @07:40AM (#37622357)
I don't know Fossil. However, the first entry in the comparison table puts me off.

"VCS, tickets, wiki, docs, notes, forum, chat, UI, RBAC"

I don't want my version control system to be a wiki. Or a chat app, or any of that.

Re:Fossil versus Git by maegul on Saturday September 23, 2023 @07:44AM (#37622377)
Well, do you use GitHub or an equivalent?

The point of this, as the article states:

> These additional capabilities are available for Git as 3rd-party add-ons, but with Fossil they are integrated into the design, to the point that it approximates "GitHub-in-a-box.

I’ve not used fossil, but I appreciate this idea.

Sure, it’s not unixy, but maybe a VCS reasonably demands such features, and today, it’s not as though these are crazy advanced or complex features.

Re:Fossil versus Git by Vinnl on Saturday September 23, 2023 @08:08AM (#37622547)
To clarify the actual benefit: this means that tickets, etc. are also distributed, i.e. available and backed up locally with every contributor, and not dependent on lock-in to a single vendor like GitHub.
Re:Fossil versus Git by mgaunard on Saturday September 23, 2023 @08:19AM (#37622624)
Yeah, I really want to solve merge conflicts on tickets.
Re:Fossil versus Git by prepend on Saturday September 23, 2023 @08:16AM (#37622610)
I understand, I don’t care about that.
Re:Fossil versus Git by otp209 on Saturday September 23, 2023 @01:37PM (#37625436)
Okay? Some of us might want to.

As the git people love parroting of its myriad kitchen sink commands, "if you don't like it you don't have to use it".

I'd rather have a single integrated tool than the shopping list of "just use X and Y and Z" people are prescribing in this thread for getting the so-called git ""ecosystem"" ""working"".

Not that I'll necessarily use all the added features; but the ones I do want being integrated is absolutely relevant to my interests.

Re:Fossil versus Git by mbivert on Saturday September 23, 2023 @09:17AM (#37622969)
Versioning/distributing tickets is indeed useful; but can't this be "implemented" in git already, by defining a file-based format (think, issue/$YYYYMMDDHHMMSS-$title.md, but the variants are endless), and versioning those files?

A first drawback I can think of is that this would probably require an additional layer for non-tech people. I haven't had the opportunity to use Fossil, so I am clueless regarding the kind of UI they propose, but I wouldn't be surprised that they actually solve this, considering the extensive list of features.

Re:Fossil versus Git by hn92726819 on Saturday September 23, 2023 @09:22AM (#37623014)
Well the article does say:

> These additional capabilities are available for Git as 3rd-party add-ons, but with Fossil they are integrated into the design

Re:Fossil versus Git by mbivert on Saturday September 23, 2023 @12:54PM (#37625012)
Ah, I probably wasn't clear enough: my point was that the core of the feature (i.e. omitting non-tech users) can be implemented so cheaply that it seems a bit superfluous to require a built-in implementation.

However, Fossil's documentation[0] has some answers:

  Some other distributed bug-tracking systems store tickets as files within the source tree and thereby leverage the syncing and merging capabilities of the versioning system to sync and merge tickets. This approach is rejected in fossil for three reasons:

  1. Check-ins in fossil are immutable. So if tickets were part of the check-in, then there would be no way to add new tickets to a check-in as new bugs are discovered.

  2. Any project of reasonable size and complexity will generate thousands and thousands of tickets, and we do not want all those ticket files cluttering the source tree. 
 
  3. We want tickets to be managed from the web interface and to have a permission system that is distinct from check-in permissions. In other words, we do not want to restrict the creation and editing of tickets to developers with check-in privileges and an installed copy of the fossil executable. Casual passers-by on the internet should be permitted to create tickets.
Point 3. indeed requires additional software;

Point 2. could be solved by storing the tickets in a distinct repository.

Regarding point 1., as far as I understand, a check-in is an atomic series of modifications to the repository database, so it seems there is a strong correlation between the tickets and the "commits"? If so, why not, but I'm not sure why this is necessary either.

[0]: https://www.fossil-scm.org/home/doc/trunk/www/bugtheory.wiki

Re:Fossil versus Git by toenail on Saturday September 23, 2023 @07:53AM (#37622438)
> Well, do you use GitHub or an equivalent?

Not sure how that's relevant, but I have ~150 repos locally and less than 10 on github. I also like the unix philosophy of having tools that do one thing and do it well.

Re:Fossil versus Git by sausagefeet on Saturday September 23, 2023 @08:45AM (#37622763)
"One thing" depends on how you squint, though. If you view "version and track text information" then it makes sense to store tickets, wiki, code, yadda under the same tool.
Re:Fossil versus Git by toenail on Saturday September 23, 2023 @08:48AM (#37622785)
I'm primarily a command line user, I don't use explorer to view, rename, move, copy files etc. Like I said, unix-y. If you think "manage computer stuffs" the OS should bundle all tools anybody could ever want.
Re:Fossil versus Git by thfuran on Saturday September 23, 2023 @10:47AM (#37623731)
Most popular Linux distros include a whole lot more than just a stripped down kernel.
Re:Fossil versus Git by toenail on Saturday September 23, 2023 @12:22PM (#37624648)
Exactly, they include other programs. They don't ship a kernel that includes a music player.
Re:Fossil versus Git by thfuran on Saturday September 23, 2023 @12:49PM (#37624950)
That's a meaningless distribution as far as most OS uses are concerned.
Re:Fossil versus Git by sausagefeet on Sunday September 24, 2023 @09:01AM (#37632736)
And yet you don't use different file systems for small files vs large files, for text vs movies. One assumes that a filesystem can handle all of that kind of data. But one layer above we don't want all those under a unified interface.
Re:Fossil versus Git by toenail on Sunday September 24, 2023 @10:17AM (#37633352)
> And yet you don't use different file systems for small files vs large files, for text vs movies.

Um, yes, I do. Not that it matters anyway, filesystems are not optimized to handle source code to begin with, they deal well with sectors/blocks and do that well.

Re:Fossil versus Git by prepend on Saturday September 23, 2023 @08:15AM (#37622604)
I like the “separation of powers” between git and GitHub functions (and gitlab).

It’s nice to be able to start git repos locally and only push to GitHub when I need to.

I also use gitlab quite a bit and it’s so clean to be able to pull from gitlab and push to GitHub, or vice versa. I don’t need any utilities, I don’t need any special workflows.

Git is sort of like a protocol with gitlab, GitHub, and others built on top.

If GitHub owned git then it would be so tightly coupled and suck.

I don’t think a VCS demands features of chat and the others. And the evidence provided by the millions of users seems to support that.

It’s not that chat and wiki are super complicated, it’s just more stuff. Implementing an alarm clock isn’t complicated either, should VCMs have alarm clocks as well?

Re:Fossil versus Git by otabdeveloper4 on Saturday September 23, 2023 @07:51AM (#37622425)
Gitea is already "GitHub in a box".

Also, GitHub is not something to emulate, it is the lowest common denominator of repo hosting.

Re:Fossil versus Git by Zababa on Saturday September 23, 2023 @08:24AM (#37622651)
> Also, GitHub is not something to emulate, it is the lowest common denominator of repo hosting.

What do you mean by this? Having mostly used git and github, I don't really know what I'm missing.

Re:Fossil versus Git by bradley13 on Saturday September 23, 2023 @08:49AM (#37622794)
Just a minor example that irritated me today: try to look at a graph of past commits. In GitLab, it is nicely presented. In GitHub, it is nearly useless.
Re:Fossil versus Git by simultsop on Saturday September 23, 2023 @07:56AM (#37622463)
To me it feels like, rare and smart ones, trying to penetrate giant markets with all in one solutions. I'm not even mad. But find it hard to comprehend who would make such change. Probably they want to test their patience and expect considerable userbase in 30 years, finally monetize it.
Re:Fossil versus Git by dartos on Saturday September 23, 2023 @08:18AM (#37622618)
Or they just made a tool that solves a problem for them.

This whole article is pretty much why fossil was made.

Re:Fossil versus Git by christophilus on Saturday September 23, 2023 @07:54AM (#37622448)
I’m of two minds. I like the unix philosophy, and I feel like an all in one tool (probably written in C) is just a bigger attack vector. But I also like that there are alternatives to the git monoculture. I think the focus on convenience for common dev team functions is rather nice.
Re:Fossil versus Git by tecleandor on Saturday September 23, 2023 @07:56AM (#37622467)
Re:Fossil versus Git by corbezzoli on Saturday September 23, 2023 @07:59AM (#37622480)
GitHub is not git. GitHub’s wiki is actually a whole standalone repository
Re:Fossil versus Git by toenail on Saturday September 23, 2023 @07:58AM (#37622471)
github isn't git
Re:Fossil versus Git by bradley13 on Saturday September 23, 2023 @08:52AM (#37622816)
GitHub is not Git.
Re:Fossil versus Git by toenail on Saturday September 23, 2023 @07:59AM (#37622483)
It's a good list actually, and shows what fossil devs value. Which is more often than not something I don't value highly.
Re:Fossil versus Git by rakoo on Saturday September 23, 2023 @08:08AM (#37622541)
That's the thing, fossil isn't merely a VCS, it's a full dev collaboration environment and includes all that is needed
Re:Fossil versus Git by jbaber on Saturday September 23, 2023 @08:19AM (#37622623)
I agree. But tickets... maybe. Issues feel integral to a project. -- it's weird they depend on what server you put stuff on.
Re:Fossil versus Git by mhh__ on Saturday September 23, 2023 @08:24AM (#37622654)
It's also subtly useful to have them be actually on the disk when you need them.
Re:Fossil versus Git by bachmeier on Saturday September 23, 2023 @08:29AM (#37622688)
> I don't want my version control system to be a wiki. Or a chat app, or any of that.

Then just don't use those features. There is no performance price for it.

One of the nice things about Fossil having a ticket database is that you can use it as a distributed, version-controlled SQLite database to store anything. You can even use it as a JSON database if you want. And the forum, well, it's lovely to have it there even if you rarely use it. Because sometimes if you're working with someone else it comes in handy - some conversations really should be kept with the code.

Re:Fossil versus Git by remram on Saturday September 23, 2023 @09:49AM (#37623189)
Then don't use those features. Do you know how many commands Git has specifically for formatting/sending/applying patches via email?