Still messing around with GIT.
More complete version of the Java side, but heavily out of sync with the
JNI side.