10 ms·
Fossil versus Git
- theamk 4y agoOne of the previous discussions with good comments: https://news.ycombinator.com/item?id=27736980 https://news.ycombinator.com/item?id=27736980
- dang 4y agoThanks! Macroexpanded: Why I'm using Fossil SCM instead of other source control systems (2016) - https://news.ycombinator.com/item?id=31634560 https://news.ycombinator.com/item?id=31634560 - June 2022 (127 comments) Fossil - https://news.ycombinator.com/item?id=30815693 https://news.ycombinator.com/item?id=30815693 - March 2022 (131 comments) Fossil versus Git - https://news.ycombinator.com/item?id=30404112 https://news.ycombinator.com/item?id=30404112 - Feb 2022 (5 comments) Git vs. Fossil: what you should have done vs. what you did - https://news.ycombinator.com/item?id=27736980 https://news.ycombinator.com/item?id=27736980 - July 2021 (127 comments) Fossil - https://news.ycombinator.com/item?id=24643200 https://news.ycombinator.com/item?id=24643200 - Sept 2020 (109 comments) Fossil vs Git - https://news.ycombinator.com/item?id=19006036 https://news.ycombinator.com/item?id=19006036 - Jan 2019 (247 comments) Fossil – High-reliability, distributed software configuration management system - https://news.ycombinator.com/item?id=17246044 https://news.ycombinator.com/item?id=17246044 - June 2018 (7 comments) Fossil versus Git - https://news.ycombinator.com/item?id=17235150 https://news.ycombinator.com/item?id=17235150 - June 2018 (1 comment) Fossil – A high-reliability distributed software configuration management system - https://news.ycombinator.com/item?id=17230766 https://news.ycombinator.com/item?id=17230766 - June 2018 (40 comments) The Fossil distributed version control system - https://news.ycombinator.com/item?id=16838207 https://news.ycombinator.com/item?id=16838207 - April 2018 (52 comments) Fossil – Next Generation - https://news.ycombinator.com/item?id=15752725 https://news.ycombinator.com/item?id=15752725 - Nov 2017 (123 comments) Fossil SCM - https://news.ycombinator.com/item?id=13668952 https://news.ycombinator.com/item?id=13668952 - Feb 2017 (144 comments) Fossil: A decentralized version control, bug tracking, and wiki software - https://news.ycombinator.com/item?id=12673229 https://news.ycombinator.com/item?id=12673229 - Oct 2016 (98 comments) Has anyone tried the Fossil SCM? What's your opinion? - https://news.ycombinator.com/item?id=11934336 https://news.ycombinator.com/item?id=11934336 - June 2016 (3 comments) Fossil SCM keeps more than just your code - https://news.ycombinator.com/item?id=10737131 https://news.ycombinator.com/item?id=10737131 - Dec 2015 (90 comments) Fossil – Simple, high-reliability, distributed software configuration management - https://news.ycombinator.com/item?id=8697028 https://news.ycombinator.com/item?id=8697028 - Dec 2014 (84 comments) Fossil SCM 1.23 released - https://news.ycombinator.com/item?id=4357107 https://news.ycombinator.com/item?id=4357107 - Aug 2012 (2 comments) Fossil Versus Git - https://news.ycombinator.com/item?id=2524422 https://news.ycombinator.com/item?id=2524422 - May 2011 (85 comments) Fossil, DVC with wiki and ticketing developed by sqlite creator Richard Hipp - https://news.ycombinator.com/item?id=1322637 https://news.ycombinator.com/item?id=1322637 - May 2010 (3 comments) Fossil SCM (from SQLite's creator) - https://news.ycombinator.com/item?id=809493 https://news.ycombinator.com/item?id=809493 - Sept 2009 (29 comments) Fossil: A standalone and distributed Version Control, Wiki and Bug-Tracking system - https://news.ycombinator.com/item?id=609509 https://news.ycombinator.com/item?id=609509 - May 2009 (2 comments) Fossil - source control w/ built-in bug tracking and wiki - https://news.ycombinator.com/item?id=514002 https://news.ycombinator.com/item?id=514002 - March 2009 (1 comment) Fossil: Distributed Revision Control, Wiki, and Bug-Tracking - https://news.ycombinator.com/item?id=323065 https://news.ycombinator.com/item?id=323065 - Oct 2008 (1 comment)
- kzrdude 4y agoIs fossil the main competitor to git? The "only" significantly different one?
- jrimbault 4y agoI believe the video game industry (and other industries where code co-exists with large binary assets) mostly uses Perforce and Mercurial
- maccard 4y agoGames do use perforce, yeah. Perforce is centralized, with locks - think git-lfs.
- barkingcat 4y agothis is a flawed comparison. The major competitor to git is mercurial, and while git has won the popularity contest mercurial is still in use across large projects. Java/openjdk moved from mercurial to git in the 2021 time frame. I don't believe fossil has ever been used on a scale as large as openjdk from an organizational point of view (thousands of participants in the ecosystem, across dozens of jdk implementations, across more than a dozen hardware platforms, etc) Fossil as used in sqlite vs mercurial/git openjdk repos as used across the java ecosystem - I think java is one of the projects where platform support is at least as wide as sqlite, if not greater, and the codebase is much larger and more sprawling. Facebook has moved on from mercurial as well, and it's not to fossil. Fossil is a great tool, but seeing it as "one or the other" vs git isn't useful. In particular, this guide on the fossil website is a guide for users wanting to use fossil, so git is not the only competitor, but for the purposes of fossil adopters, that web page is a great resource!
- themerone 4y agoWhere did you hear Facebook is dumping Mercurial. Last I heard they were using Rust to optimize Mercurial.
- 4y ago
- froderick 4y agoAs an avid git worktree user, I use multiple checkouts for the same repo all the time. It avoids a lot of context-switching pain.
- ok_dad 4y ago> git worktree Thanks, you successfully blew my mind today when I searched what this was, and learned what it was. I can't believe I've been missing out on this. I have an application for this command today in a work project that will allow me to leave work early, so thanks for the early weekend!
- scubbo 4y agoCan you elaborate on some use-cases? I'm finding it hard to imagine a situation where `git worktree add <path> <commit>; do_operation_in_path <path>; git worktree remove <path` is any different than `git checkout <commit>; do_operation_in_path <path>; git checkout -`
- happytoexplain 4y agoYou're forgetting the stash command in your latter example. God help you if you're doing anything more than switching to one other branch at a time to make one small change and returning. Also, if you're unlucky enough to be using an IDE that doesn't always handle large codebase changes well (e.g., let's say... Xcode), then you've eliminated that problem too.
- seryoiupfurds 4y agoIt's indispensible for the case of `git worktree add <path> <long-running-branch>`.
- karatinversion 4y agoThe code base i work on takes a long time to rebuild when crossing certain points in the history, so I have persistent worktrees for the last few versions that we still support. Lets me drop into an older version for a backport without the long wait.
- 4y ago
- gwbas1c 4y agoI like the idea of a completely self-contained source code control. Honestly, some images of Fossil's UI would be very nice. One thought: What's now making Git super-powerful is that every IDE that I use has halfway-decent support for Git. I can view a diff of my changes and commit without leaving the IDE. Do any major IDEs integrate with Fossil?
- ghoward 4y agoAbout images of the UI: Fossil's website is run by Fossil, so you are, in fact, looking at Fossil's UI when you visit TFA.
- anthropodie 4y agoThat's really cool! Looking at source files it looks like it does not show color coding. Minor caveat but I'm so used to see code in color formatting that without it I find it hard to read it.
- wyoung2 4y agoIt's easy to strap the color-coding JS library of your choice to Fossil. Here's an instance using Prism.js and its Cay theme: https://tangentsoft.com/mikrotik/wiki?name=Maintaining+a+Local+Fork https://tangentsoft.com/mikrotik/wiki?name=Maintaining+a+Loc... You may find the article of some interest, since it summarizes one common use case for Fossil.
- gwbas1c 4y agoNot really. https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki appears to be a static site. But more importantly, things like side-by-side screenshots of Gitlab / Github / Fossil of major features will also be immensely helpful. I'm thinking of things like pull requests, ticket trackers, ect.
- cortesoft 4y agoI made this comment on a post a few days ago about using a different SCM: > I feel like an SCM would have to be WAY better than git to make it worth using. The entire developer community is on git, so you are still going to have to know how to use git in order to access other open source projects. If you are already going to have to be using git for many things, why add a second SCM you have to learn to use?
- petre 4y agoBecause it gets the job done without needing to check the manual every time. We use fossil to manage most of our company code. It's stupid easy to set up, it has a web UI, it has a simple bugtracker, a wiki and a bunch of other stuff. It's fully replicated, we have backups on each repo that somebody is working with and is in sync. We don't bother with git unless we publish something on github.
- StevePerkins 4y agoDo you use any kind of CI/CD pipeline process at all? Pretty much every significant CI platform that I know of is Git-native, or in some cases MAY have some legacy Mercurial support. If I'm having to give up CI, or hand-roll my own pipeline system completely from scratch, then that's just an unacceptable trade-off. For a personal toy project, fine. But this seems like ridiculous bikeshedding for a professional shop in the 2020's. "Without needing to check the manual every time"? Sheesh, there are really only a few Git commands that most developers ever have to run on a regular basis anyway, and usually an IDE abstracts those.
- Kaytaro 4y agoIt's easy nowadays because it's popularity forced everyone to build integration. Git is a absolute nightmare to integrate with CI tools though if you actually have to develop the integration yourself. Git has no native way to reliably tell you what you actually worked on in a branch. Yes it has git diff but that is not precisely the same, and git log is A. not easy to consume B. unreliable since git has so many methods to rewrite history. If you're using something like GitHub it's obviously much easier to use their API but even that is quirky sometimes.
- MrPoush 4y agoWhat was the impetus that inspired Fossil? Reading through the article and the links from it, I get the impression that this was created for ideological reasons rather than a technical need. I do appreciate them being upfront about not supporting rebasing, as it saves me the time I might have otherwise wasted in trying it out.
- SQLite 4y agoFossil creator here: Fossil was created for one purpose - to support the development of SQLite, a job at which it has been successful beyond all expectation. Any other use of Fossil (and there is a lot of that, though still a lot less than there is for Git) is just gravy. Fossil was designed to support the SQLite workflow. Git was designed to support the Linux Kernel workflow. Both systems seem amazingly well-suited for the projects for which they were designed. Should you use Fossil or Git on your project? I suppose that depends a lot on whether your project workflow more closely matches the Linux Kernel or SQLite. There are other considerations, but I think that is the main differentiator of the two systems. Side note: I've had a lot of help writing Fossil over the past 15 years, and especially a lot of help on the documentation. The article being discussed by this thread originated with me, but has been extensively edited by others with different ideas about the advantages and disadvantages of Fossil vs. Git. See https://fossil-scm.org/home/finfo/www/fossil-v-git.wiki?ubg https://fossil-scm.org/home/finfo/www/fossil-v-git.wiki?ubg for a complete timeline of changes to that one file, color-coded by committer. (BTW: Can Git or GitHub generate such a timeline?) My color is brown. If you scroll through the history, you can see that most of the edits to the article are by others. Which is fine. Just don't attribute everything you read there to me.
- rajandatta 4y agoThanks for your efforts! Both SQLite and Fossil are brilliant products. Fossil may not meet everyone's needs but its a great tool to be aware of as an option.
- bin_bash 4y agogit workflows typically involve an engineer working on a branch, adding commits, then making a PR which then gets reviewed and (in most companies) squashed down to a single commit and merged to main. Fossil doesn't support rebasing so the squashing isn't possible and I'm not sure the pull request concept is either. How do code reviews work with Fossil? Is this back to the svn days when everyone just made YOLO commits straight to trunk? I either don't get it or this seems like a huge step backwards.
- thayne 4y agoFrom what I understand, Fossil was designed for single developers or small teams where all developers are trusted to push directly to the trunk. In other words, the model used by sqlite (the same person made both). It's probably possible to set up a pull/merge request workflow in fossil, but that isn't what it was designed for
- flashgordon 4y agoI am possibly very ignorant to realise the value of yet another SCM and I wasnt even sure why being written in C was a feature (or even if it is a single binary). I mean I get why those are good things for the right systems but for an SCM? Sure going over a lot of files and computing hashses and diffs etc - we have lang servers you talk to over some kind of RPC in an IDE - so computing hashes/diffs alone(?) being a reason for C-devel - does it hold water? Having said that what made me pause to take a second look (pardon the superficiality) was the involvement by Dr Richard Hipp (sqlite). I mean there has gotta be something to it right?
- masukomi 4y agoultra-summary: they had specific needs for SQLite development, and nothing else was addressing them. It was _not_ intended to solve anyone else's problems. It's _probably_ not the right solution for _most_ devs. There's a good high level description by Richard Hipp of why they built it in this interview episode of Corecursive: https://corecursive.com/066-sqlite-with-richard-hipp/ https://corecursive.com/066-sqlite-with-richard-hipp/
- KajMagnus 4y agoIs there anything like Fossil — with a built in ticket tracker — but that does not remember exactly what I did? But instead focuses on a nice looking history? Hmm but after having websearched for "fossil ticket site:news.ycombinator.com", not sure if I really want a built in ticket tracker. Also, seems Fossil remembers and redistributes all old revisions of tickets and comments — including typos and angry words or ... accidentally copyrighted material? someone might have added, not sure if I like that Any thougts about Fossil's ticket tracker? (Anyone has used it?)