Пример #1
0
  private boolean isCommitWithoutFilesAllowed() {
    if (filesViewer.getCheckedElements().length > 0) return true;

    if (amendingItem.getSelection()) return true;

    return CommitHelper.isCommitWithoutFilesAllowed(repository);
  }
  private void getHeadCommitInfo() {
    CommitInfo headCommitInfo = CommitHelper.getHeadCommitInfo(repository);
    RevCommit previousCommit = headCommitInfo.getCommit();

    amendingCommitInRemoteBranch = isContainedInAnyRemoteBranch(previousCommit);
    previousCommitMessage = headCommitInfo.getCommitMessage();
    previousAuthor = headCommitInfo.getAuthor();
  }