sha1dc: build git plumbing code more explicitly