void createNotes()

in src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java [170:184]


  void createNotes(List<ChangeNotes> notes, ProgressMonitor monitor) throws IOException {
    try (RevWalk rw = new RevWalk(git)) {
      if (monitor == null) {
        monitor = NullProgressMonitor.INSTANCE;
      }

      for (ChangeNotes cn : notes) {
        monitor.update(1);
        PatchSet ps = psUtil.current(cn);
        RevCommit commit = rw.parseCommit(ps.commitId());
        getNotes().set(commit, createNoteContent(cn, ps));
        getMessage().append("* ").append(commit.getShortMessage()).append("\n");
      }
    }
  }