News for hackers. Stuff that matters.
Re:I made my own Git by kgeist on Tuesday January 27, 2026 @06:51AM (#46778771)
>The hardest part about this project was actually just parsing.

How about using sqlite for this? Then you wouldn't need to parse anything, just read/update tables. Fast indexing out of the box, too.

Re:I made my own Git by grenran on Tuesday January 27, 2026 @06:55AM (#46778803)
that would be what https://fossil-scm.org/ is
Re:I made my own Git by TonyStr on Tuesday January 27, 2026 @07:05AM (#46778907)
Very interesting. Looks like fossil has made some unique design choices that differ from git[0]. Has anyone here used it? I'd love to hear how it compares.

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

Re:I made my own Git by smartmic on Tuesday January 27, 2026 @07:30AM (#46779125)
I use Fossil extensively, but only for personal projects. There are specific design conditions, such as no rebasing [0], and overall, it is simpler yet more useful to me. However, I think Fossil is better suited for projects governed under the cathedral model than the bazaar model. It's great for self-hosting, and the web UI is excellent not only for version control, but also for managing a software development project. However, if you want a low barrier to integrating contributions, Fossil is not as good as the various Git forges out there. You have to either receive patches or Fossil bundles via email or forum, or onboard/register contributors as developers with quite wide repo permissions.

[0]: https://fossil-scm.org/home/doc/trunk/www/rebaseharm.md

Re:I made my own Git by toyg on Tuesday January 27, 2026 @08:40AM (#46779774)
Sounds like a more modern cvs/Subversion
Re:I made my own Git by chungy on Tuesday January 27, 2026 @03:25PM (#46786009)
It was developed primarily to replace SQLite's CVS repository, after all. They used CVSTrac as the forge and Fossil was designed to replace that component too.
Re:I made my own Git by graemep on Tuesday January 27, 2026 @08:04AM (#46779437)
I like it but the problem is everyone else already knows git and everything integrates with git.

It is very easy to self host.

Not having staging is awkward at first but works well once you get used to it.

I prefer it for personal projects. In think its better for small teams if people are willing to adjust but have not had enough opportunities to try it.

Re:I made my own Git by TonyStr on Tuesday January 27, 2026 @09:08AM (#46780092)
Is it possible to commit individual files, or specific lines, without a staging area? I guess this might be against Fossil's ethos, and you're supposed to just commit everything every time?
Re:I made my own Git by graemep on Tuesday January 27, 2026 @11:31AM (#46782231)
Yes you can list specific files, but you have to list them all in the commit command.

I think the ethos is to discourage it.

It does not seem to be possible to commit just specific lines.

Re:I made my own Git by jact on Tuesday January 27, 2026 @09:38AM (#46780546)
You can commit individual files.
Re:I made my own Git by justabrowser on Tuesday January 27, 2026 @09:45AM (#46780645)
Fossil user here. Yes, you can commit individual files.

There are certain more advanced things git can do that fossil can't--for example rebasing, which the author refuses to implement. If you want to rename a commit then you also have to go into the sqlite shell and do it manually, and there's no way to delete a bad commit. All of this is stupid, obnoxious asshattery on the part of the author, but otherwise it's very easy to use and bulletproof. (I don't ever use the web UI.)

One way to simulate "staging" is to just checkout the repo into multiple directories and do different things in each one, or even create a temporary work repo to be cleaned up and merged into the main one.

So you do lose some flexibility with fossil, but for normal uses it's quite usable, and the tradeoff is you won't ever accidentally blow your leg off.

EDIT: Since literally every other comment I made after this (like 3 of them) was downvoted and insta-flagged by the brigade of useless fags here, this will be my last post under this account. Fuck this piece of shit forum.

Re:I made my own Git by adzm on Tuesday January 27, 2026 @10:47AM (#46781547)
Second time today I've read and agreed with most of your comment only to eyeroll and downvote once seeing your ridiculous and immature edit.
Re:I made my own Git by embedding-shape on Tuesday January 27, 2026 @07:07AM (#46778916)
Used it on and off mainly to check it out, but always in a personal/experimental capacity. Never managed to convince any teams to give it a try, mostly because git don't tend to get in the way, so hard to justify to learn something completely new.

I really enjoy how local-first it is, as someone who sometimes work without internet connection. That the data around "work" is part of the SCM as well, not just the code, makes a lot of sense to me at a high-level, and many times I wish git worked the same...

Re:I made my own Git by usrbinbash on Tuesday January 27, 2026 @07:12AM (#46778966)
I mean, git is just as "local-first" (a git repo is just a directory after all), and the standard git-toolchain includes a server, so...

But yeah, fossil is interesting, and it's a crying shame its not more well known, for the exact reasons you point out.

Re:I made my own Git by embedding-shape on Tuesday January 27, 2026 @07:56AM (#46779384)
> I mean, git is just as "local-first" (a git repo is just a directory after all), and the standard git-toolchain includes a server, so...

It isn't though, Fossil integrates all the data around the code too in the "repository", so issues, wiki, documentation, notes and so on are all together, not like in git where most commonly you have those things on another platform, or you use something like `git notes` which has maybe 10% of the features of the respective Fossil feature.

It might be useful to scan through the list of features of Fossil and dig into it, because it does a lot more than you seem to think :) https://fossil-scm.org/home/doc/trunk/www/index.wiki

Re:I made my own Git by adastra22 on Tuesday January 27, 2026 @10:45AM (#46781507)
Those things exist for git too, e.g. git-bug. But the first-class to do it in git is email.
Re:I made my own Git by embedding-shape on Tuesday January 27, 2026 @01:20PM (#46784042)
Email isn't a wiki, bug tracking, documentation and all the other stuff Fossil offers as part of their core design. The point is for it to be in one place, and local-first.

If you don't trust me, read the list of features and give it a try yourself: https://fossil-scm.org/home/doc/trunk/www/index.wiki

Re:I made my own Git by adastra22 on Tuesday January 27, 2026 @07:58PM (#46789573)
I am aware of fossil. Did you look up git-bug?
Re:I made my own Git by embedding-shape on Wednesday January 28, 2026 @04:40AM (#46793159)
Indeed, I'd still claim that a 3rd party addition doesn't make Git as local-first as Fossil when it comes to other things than source code.
Re:I made my own Git by jact on Tuesday January 27, 2026 @09:37AM (#46780521)
I use Fossil extensively for all my personal projects and find it superior for the general case. As others said it’s more suited for small projects.

I also use Fossil for lots of weird things. I created a forum game using Fossil’s ticket and forum features because it’s so easy to spin up and for my friends to sign in to.

At work we ended up using Fossil in production to manage configuration and deployment in a highly locked down customer environment where its ability to run as a single static binary, talk over HTTP without external dependencies, etc. was essential. It was a poor man’s deployment tool, but it performed admirably.

Fossil even works well as a blogging platform.

Re:I made my own Git by dchest on Tuesday January 27, 2026 @11:40AM (#46782370)
While Fossil uses SQLite for underlying storage (instead of filesystem directly) and various support infrastructure, its actual format is not based on SQLite: https://fossil-scm.org/home/doc/trunk/www/fileformat.wiki

It's basically plaintext. Even deltas are plaintext for text files.

Reason: "The global state of a fossil repository is kept simple so that it can endure in useful form for decades or centuries. A fossil repository is intended to be readable, searchable, and extensible by people not yet born."

Re:I made my own Git by storystarling on Tuesday January 27, 2026 @10:47AM (#46781554)
SQLite solves the storage layer but I suspect you run into a pretty big impedance mismatch on the graph traversals. For heavy DAG operations like history rewriting, a custom structure seems way more efficient than trying to model that relationally.
Re:I made my own Git by SQLite on Tuesday January 27, 2026 @07:42PM (#46789427)
The Common Table Expression feature of SQL is very good at walking graphs. See, for example <https://sqlite.org/lang_with.html#queries_against_a_graph>.