On Wednesday, May 21, 2014, Jeff Sickel wrote: > Git is the closest as it’s just C, > sort of: it’s a whole lot of code. But why would you want to > bring in “178K lines of *.[ch], 20K lines of shell scripts, 100K+ > lines of test scripts” and have to lug in the massive payload > of Python and Perl just to make it functional? > In case anyone is _really determined_ to do this: libgit2 has only 117K lines of code, better than git's 178K. It also has a mere 200 lines of shell, total. It doesn't depend on Python or Perl. It's also supposed to be much more portable than git, though I dunno if that would actually work out for Plan 9. Probably not that much. You could try porting libgit2 and then write some small C wrappers using it.