private Collection<GitVersionInfo> history(File file, LogCommandSpec logCommandSpec) throws GitAPIException{
Repository repository = getRepository(file);
Git git = new Git(repository);
String fileSystemPath = getPath(file, repository);
Iterable<RevCommit> log = logCommandSpec.specify(git.log(), repository).call();
List<GitVersionInfo> versions = new ArrayList<GitVersionInfo>(historyDepth);
for (RevCommit revCommit : log) {
versions.add(makeVersionInfo(revCommit));
}
return versions;