I use Fossil for all of my personal projects. Having a wiki and bug tracker built-in is really nice, and I like the way repositories sync. It’s perfect for small teams that want everything, but don’t want to rely on a host like GitHub or set up complicated software themselves.
Fossil: A Git alternative with batteries included
Submitted 11 months ago by mac@programming.dev to programming@programming.dev
https://fossil-scm.org/home/doc/trunk/www/index.wiki
Comments
EarlTurlet@lemmy.zip 11 months ago
ericjmorey@programming.dev 11 months ago
This sounded interesting years ago. I never really looked into it though. Hopefully it’s stabilized.
ericjmorey@programming.dev 11 months ago
interolivary@beehaw.org 11 months ago
Looks like it’s written in C of all things, huh
onlinepersona@programming.dev 11 months ago
inb4: Rewrite it in Rust!
interolivary@beehaw.org 11 months ago
Rewrite in Brainfuck!
shnizmuffin@lemmy.inbutts.lol 11 months ago
…ew.
troyunrau@lemmy.ca 11 months ago
One of the strengths of open source is its diversity of technical solutions. It’s a feature, not a bug.
Before git, there were other open source version control systems, and they still work. For example, sometimes a centralized repository is the right tool for the job, and subversion is still there.
Fossil is cool. Almost no one uses it, aside from sqlite themselves, so it sort of feels like a roll-your-own VCS. But it works for them, and I suspect it would work for a lot of other people too.
sqlite has some interesting philosophical foundations, and that makes it an unique project. :)
HiddenTower@lemmy.world 11 months ago
I checked out fossil once and looks like it doesn’t have an equivalent to Pull Request so I moved on. It wasn’t clear how anyone could begin to be a contributor to a project if I host on fossil.
dukk@programming.dev 11 months ago
I mean, Git doesn’t natively have pull requests either…the “official” method involves sending patches through email. It seems that Fossil has a similar setup (although without the tool)..
PRs are a feature introduced by GitHub. I guess Fossil bundles would be close enough to them.
technom@programming.dev 11 months ago
This is objectively wrong! Git has ‘request-pull’ command that generates a message to an upstream maintainer to pull changes from an online downstream clone. That request message can be sent by email or some other means. But no patches are involved. And no - Github did not invent it. It was there before Github existed. In fact, there is a rant by Torvalds as to how GitHub reimplemented PRs poorly, throwing away good features of the request-pull command.
HiddenTower@lemmy.world 11 months ago
I didn’t see the diff command last time, thanks for that. It still feels like a miss for fossil to host a web view and forum but not a pull request-like section.
onlinepersona@programming.dev 11 months ago
Patches have terrible UX. IMO, if projects don’t support the equivalent of pull or merge requests, they are just turning away contributors.
key@lemmy.keychat.org 11 months ago
Ooh awesome. The more alternatives to git the better. I’m still bitter over Bitbucket dropping hg support. Suppose with this there’s no need for a bitbucket.
Having the core of the repo being a sqlite DB is neat. Certainly seems better than needing external tools like I saw posted a couple days ago to do the same sort of queries. Of course literally any vcs is going to have better CLI UX than git, so not sure how much credit I can give fossil there.
otl@hachyderm.io 11 months ago
@mac Related: Why the SQLite team uses Fossil instead of Git https://sqlite.org/whynotgit.html
robinm@programming.dev 11 months ago
I am always doubtful when people say that accessing information inside git is hard. I totally agree that defaults in git can be improved (and they are,
git restore
andgit switch
are a much better alternative togit checkout
that I no longer use). So let’s review the section “A Few Reasons Why SQLite Does Not Use Git”:git log --graph --oneline --author-date-order --since=1week
Make it an alias if you use it often. Alias is what helps you create your own good default (until everyone uses the same alias and in that case it should be part of the base set of commands).
git log --graph --oneline --all --ancestry-path ${commit}~…
Likewise you could consider making it an alias if you use it often. Aliases can also be used as a post-it to help you remember what are the command that you find useful but you only use once in a blue moon!
I may agree about that one. For reference, this is what the article says:
If
git fetch
was run automatically every so often, as well asgit push
(of course in a personal branch), then this model could be simplified asAnd integrating your changes (merging/rebasing) should probably be exclusively done using a PR-like mechanism.
I’m skeptical about the usefulness of this. But since git was my first real vcs (10 years ago), it may just be that I have not used a workflow that took advantaged of persistant branches. I assume that
git annotate
could be a solution here.That’s absolutely true but I’m not sure it’s a real issue. Given how many strategies there are for CI/CD (and none is the definitive winner yet) I do think that being able to select the right option for you/your team/your org is probably a good idea.
I highly disagree about that xkcd comics. Git is compatible will all workflows so you have to use a subset of all the commands. Of course you will have more commands that you never use if a software is usable for all the workflow that you don’t use. But you need about 15 commands to do stuff, 30 to be fluent, and some more to be able to help anyone. Compared to any other complex software that I use I really don’t think that it’s an unreasonably high count. That being said I totally agree that git from 10+ years ago was more complex and we should correctly teach what is needed to junior. HTML/css/js is a nightmare of complexity but it doesn’t stop 15 years old kid with no mentoring to build cool stuff because you don’t need to know everything to be able to do most of the things you may think of, just a good minimal set of tools. And people should definitively take the time to learn git, and stop using outdated guide. Anything that don’t use
git switch
,git restore
andgit rebase --interactive
and presents you have to inspect the history in length (git log --graph
or any graphical interface that show the history in a graph,git show
, and more generally than you can filter the history in any way you want, being by author, date, folder, file type, …) is definitively not a good guide.To sum-up, I think that from this presentation fossil seems more opinionated than git which means that it will be simpler as long as your workflow exactly matches the expected workflow whereas using git requires to curate its list of commands to select only the one useful for yours.
ericjmorey@programming.dev 11 months ago
Thanks for this write-up!
It seems that you’ve kinda confirmed the points made by the Fossil team by showing that while all of their pain points are addressable, addressing those pain points takes more knowledge and experience compared to Fossil’s implemented solutions. Opinionated workflows are best presented up front for beginners. It’s no surprise that people with experience and have developed their own workflows already wouldn’t value this highly unless they are often charged with helping beginners learn a git workflow.
Ferk@kbin.social 11 months ago
Oh wow, I didn't know about this one. I guess it's relatively new?
what's the benefit over using
git checkout
?jadero@programming.dev 11 months ago
I am in a perpetual wonderland of git confusion, but this was a good read. And maybe I now have a pathway to enlightenment.
Makussu@feddit.de 11 months ago
Thanks