Improve the interface of CommitGraph
Add query to get a CommitGraph in GitRepository