I'd like to run the command git log HEAD --follow <file> to see what commits touch a specific file on the current head. So I tried running:
List<GitCommit> listOfCommits = GitHistoryUtils.history(
However, by doing so, I get the VcsException com.intellij.openapi.vcs.VcsException: bad revision 'file1.txt'. (I can confirm that this works in the command line).
Is it possible to get this to work using GitHistoryUtils.history()?
Update: I just realized that this also occurs if I run without the --follow parameter.