protected RevCommit mv(File repo, String from, String to, String message)
throws Exception {
File file = new File(repo.getParentFile(), from);
file.renameTo(new File(repo.getParentFile(), to));
Git git = Git.open(repo);
git.rm().addFilepattern(from);
git.add().addFilepattern(to).call();
RevCommit commit = git.commit().setAll(true).setMessage(message)
.setAuthor(author).setCommitter(committer).call();
assertNotNull(commit);
return commit;