Class AddNoteCommand

    • Field Detail

      • message

        private java.lang.String message
      • notesRef

        private java.lang.String notesRef
    • Constructor Detail

      • AddNoteCommand

        protected AddNoteCommand​(Repository repo)
        Constructor for AddNoteCommand
        Parameters:
        repo - the Repository
    • Method Detail

      • setObjectId

        public AddNoteCommand setObjectId​(RevObject id)
        Sets the object id of object you want a note on. If the object already has a note, the existing note will be replaced.
        Parameters:
        id - a RevObject
        Returns:
        this
      • setMessage

        public AddNoteCommand setMessage​(java.lang.String message)
        Set the notes message
        Parameters:
        message - the notes message used when adding a note
        Returns:
        this
      • commitNoteMap

        static void commitNoteMap​(Repository r,
                                  java.lang.String ref,
                                  RevWalk walk,
                                  NoteMap map,
                                  RevCommit notesCommit,
                                  ObjectInserter inserter,
                                  java.lang.String msg)
                           throws java.io.IOException
        Throws:
        java.io.IOException