コード例 #1
0
ファイル: CommitDialog.java プロジェクト: blizzy78/egit
  private boolean isCommitWithoutFilesAllowed() {
    if (filesViewer.getCheckedElements().length > 0) return true;

    if (amendingItem.getSelection()) return true;

    return CommitHelper.isCommitWithoutFilesAllowed(repository);
  }
コード例 #2
0
  private void getHeadCommitInfo() {
    CommitInfo headCommitInfo = CommitHelper.getHeadCommitInfo(repository);
    RevCommit previousCommit = headCommitInfo.getCommit();

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