private Collection<Change> getChangesWithCommitMessage(GitCommit gitCommit) { Collection<Change> changes = gitCommit.getChanges(); String content = new CommitMessageFormatter(gitCommit).getLongCommitMessage(); VirtualFile root = VirtualFileManager.getInstance().findFileByUrl("file:///"); assert root != null; FilePathImpl commitMsg = new FilePathImpl(new File("/COMMIT_MSG"), false) { @Override public FileType getFileType() { return PlainTextFileType.INSTANCE; } @Override public boolean isNonLocal() { return true; } }; changes.add(new Change(null, new SimpleContentRevision( content, commitMsg, gitCommit.getId().asString() ))); return changes; } }