Joey Hess: git-annex v6
Version 6 of git-annex, released last week, adds a major new feature;
support for unlocked large files that can be edited as usual and committed
using regular git commands.
For example:
git init
git annex init --version=6
mv ~/foo.iso .
git add foo.iso
git commit -m "added hundreds of megabytes to git annex (not git)"
git remote add origin ssh://sever/dir
git annex sync origin --content # uploads foo.iso
Compare that with how git-annex has worked from the beginning, where
git annex add is used to add a file, and then the file is locked,
preventing further modifications of it. That is still a very useful way to
use git-annex for many kinds of files, and is still supported of course.
Indeed, you can easily switch files back and forth between being locked and
unlocked.
This new unlocked file mode uses git's smudge/clean filters, and I was
busy developing it all through December. It started out playing
catch-up with git-lfs somewhat, but
has significantly surpassed it now in several ways.
So, if you had tried git-annex before, but found it didn't meet your needs,
you may want to give it another look now.
Now a few thoughts on git-annex vs git-lfs, and different tradeoffs made by them. After trying it out, my feeling is that git-lfs brings an admirable simplicity to using git with large files. File contents are automatically uploaded to the server when a git branch is pushed, and downloaded when a branch is merged, and after setting it up, the user may not need to change their git workflow at all to use git-lfs. But there are some serious costs to that simplicity. git-lfs is a centralized system. This is especially problimatic when dealing with large files. Being a decentralized system, git-annex has a lot more flexability, like transferring large file contents peer-to-peer over a LAN, and being able to choose where large quantities of data are stored (maybe in S3, maybe on a local archive disk, etc). The price git-annex pays for this flexability is you have to configure it, and run some additional commands. And, it has to keep track of what content is located where, since it can't assume the answer is "in the central server". The simplicity of git-lfs also means that the user doesn't have much control over what files are present in their checkout of a repository. git-lfs downloads all the files in the work tree. It doesn't have facilities for dropping the content of some files to free up space, or for configuring a repository to only want to get a subset of files in the first place. On the other hand, git-annex has excellent support for all those things, and this comes largely for free from its decentralized design. If git has showed us anything, it's perhaps that a little added complexity to support a fully distributed system won't prevent people using it. Even if many of them end up using it in a mostly centralized way. And that being decentralized can have benefits beyond the obvious ones.
Oh yeah, one other advantage of git-annex over git-lfs. It can use half as much disk space! A clone of a git-lfs repository contains one copy of each file in the work tree. Since the user can edit that file at any time, or checking out a different branch can delete the file, it also stashes a copy inside
.git/lfs/objects/.
One of the main reasons git-annex used locked files, from the very
beginning, was to avoid that second copy. A second local copy of a large
file can be too expensive to put up with. When I added unlocked files in
git-annex v6, I found it needed a second copy of them, same as git-lfs
does. That's the default behavior. But, I decided to complicate
git-annex with a config setting:
git config annex.thin true
git annex fix
Run those two commands, and now only one copy is needed for unlocked files!
How's it work? Well, it comes down to hard links. But there is a tradeoff here,
which is why this is not the default: When you edit a file, no local backup is
preserved of its old content. So you have to make sure to let git-annex
upload files to another repository before editing them or the old version
could get lost. So it's a tradeoff, and maybe it could be improved.
(Only thin out a file after a copy has been uploaded?)
This adds a small amount of complexity to git-annex, but I feel it's well
worth it to let unlocked files use half the disk space. If the git-lfs
developers are reading this, that would probably be my first suggestion
for a feature to consider adding to git-lfs. I hope for more opportunities
to catch-up to git-lfs in turn.
In case you ever wanted to look at
Last week was mostly focused on refactoring. I've completely rewritten user interface language selection and related metadata handling. The code is object based and fully covered by testsuite, what was impossible with previous one.
Besides that, there was usual amount of bug fixes and few improvements to the phpMyAdmin container for Docker.
All handled issues:
What happened in the
A couple of years ago I was dissatisfied with mutt, mostly because the
mutt-sidebar patch was dropped from the Debian package. That lead to
me thinking "How hard can it be to write a modal, console-based
mail-client?"
It turns out writing a client is pretty simple if you limit yourself
solely to Maildirs, and as I typically read my mail over SSH on the
mailhost itself that suited me pretty well.
Recently I restarted the mail-client. Putting it together from
scratch to simplify the implementation, and unify a lot of the adhoc
scripting which is provided by Lua. People seem to like the client,
but the single largest complaint was "Can't use it - no IMAP."
This week I've mostly been adding IMAP support, and today I'll commit
the last few bits that mean it is roughly-functional:
I have made a new release of
Changes made in this version are mostly related to link handling and removal:
While the details about how to join the set of paid contributors have always been public (
The comparison of Germany and Japan with respect to their recent history as laid out in Buruma s book throws a spotlight on various aspects of the psychology of German and Japanese population, while at the same time not falling into the easy trap of explaining everything with difference in the guilt culture. A book of great depth and broad insights everyone having even the slightest interest in these topics should read.
Automatic Calendar Management Notmuch + Calypso
One of the big features of outlook/exchange in my world is
automatically merging of incoming calendar updates from email. This
makes my calendar actually useful in knowing what meetings people have
asked me to attend. As I'm not willing to otherwise tolerate outlook,
I decided to try and provide that in my preferred environment; notmuch
and calypso.
Identifying calendar updates
The first trick is how to identify incoming messages with calendar
updates. I'd love to be able to search for specific mime content
types, but I haven't been able to construct such a search. Failing
that, I'm just looking for messages containing the string
'text/calendar':
People these days often do think about what worked well in the last year that they are proud of, what didn't work so well and what they plan to change the coming year. For me a fair amount of the resolutions were about my name. One of them was getting rid of my old name from the 








Those of you not interested in boring and melancholic look-back onto history can safely skip reading this one. For those a bit interested in the history of TeX in Debian, please read on.
Debian releases and TeX systems
The TeX system of choice has been for long years
Development over the years
TeX Live 2005 was just another TeX system but not the preferred one in Debian Etch and beyond. But then in May 2006, Thomas Esser announced the end of development of teTeX, which cleared the path for TeX Live as main TeX system in Debian (and the world!). The next release of Debian, Lenny (1/2009), already carried only TeX Live. Unfortunately it was only TeX Live 2007 and not 2008, mostly due to me having been involved in rewriting the upstream infrastructure based on Debian package files instead of the notorious xml files. This took quite a lot of attention and time from Debian away to upstream development, but this will be discussed in a different post.
Similarly, the release of TeX Live included in Debian Squeeze (released 2/2011) was only TeX Live 2009 (instead of 2010), but since then (Wheezy and Jessie) the releases of TeX Live in Debian were always the latest released ones.
Current status
Since about 2013 I am trying to keep a regular schedule of new TeX Live packages every month. These helps me to keep up with the changes in upstream packaging and reduces the load of packaging a new release of TeX Live. It also bring to users of unstable and testing a very up-to-date TeX system, where packages at most lack 1 month of behind the TeX Live net updates.
Future
As most of the readers here know, besides caring for TeX (Live) and related packages in Debian, I am also responsible for the TeX Live Manager (tlmgr) and most of upstream s infrastructure including network distribution. Thus, my (spare, outside work) time needs to be distributed between all these projects (and some others) which leaves less and less time for Debian packaging. Fortunately the packaging is in a state that making regular updates once a month is less of a burden, since most steps are automatized. What is still a bit of a struggle is adapting the binary package (