Improve public interface of GitRepository