move RevList functionality to git package
Created by: mollylogue
See https://github.com/sourcegraph/sourcegraph/issues/32124 for context. This is part of an effort to move away from calls to the gitserver Command
endpoint outside of the git
package
Test plan
Validate unit tests still pass