Gary Moore [Wed, 26 Aug 2026 20:56:33 +0000 (21:56 +0100)]
reduce heap size to 128k
We only ever actually use 3k of the static arena. 128k is many times
more than enough. This has absolutely no bearing on any kind of perf
features, it's just a bit of tidiness that makes me feel happy lol.
Gary Moore [Sun, 23 Aug 2026 22:04:45 +0000 (23:04 +0100)]
refactoring work
A more general templating process is now in place. The initial stab at
this was not scaling well at all. We now just take a list of files to
template, and a list of substitutions, and construct template classes
with this.
The end result is significantly less hacky, I am happy. :)
Gary Moore [Tue, 9 Jun 2026 20:33:33 +0000 (21:33 +0100)]
improve jj error reporting
We weren't doing error reporting here despite this being the most likely
area of the app to fail! Now we just print what if anything went wrong.
No need to crash, we can let subsequent commands run and report any
failures caused by a previous issue.
Gary Moore [Tue, 9 Jun 2026 19:25:15 +0000 (20:25 +0100)]
add -with-jj option
Now if you use the -with-jj option, we will go ahead and do the
following:
- Create a new jj repo
- Add the initial commit
- Create a named "main" branch
- Add a sourcehut remote
- Track the main branch to sourcehut remote
- Finish on a new empty, unnamed commit
Figured may as well have the option, probably something I'll want every
time. Maybe it should be enabled by default with an explicit disable...
Gary Moore [Tue, 9 Jun 2026 18:14:01 +0000 (19:14 +0100)]
add better file write error handling
When we write out the template files to disk, if any of them fail, we
now just remove the created directory outright. Figured it's a bit nicer
to do this.