Class RevCommitHandler

  • public class RevCommitHandler
    extends org.kohsuke.args4j.spi.OptionHandler<RevCommit>
    Custom argument handler RevCommit from string values.

    Assumes the parser has been initialized with a Repository.

    • Constructor Detail

      • RevCommitHandler

        public RevCommitHandler​(org.kohsuke.args4j.CmdLineParser parser,
                                org.kohsuke.args4j.OptionDef option,
                                org.kohsuke.args4j.spi.Setter<? super RevCommit> setter)
        Create a new handler for the command name.

        This constructor is used only by args4j.

        parser - a CmdLineParser object.
        option - a OptionDef object.
        setter - a Setter object.
    • Method Detail

      • parseArguments

        public int parseArguments​(org.kohsuke.args4j.spi.Parameters params)
                           throws org.kohsuke.args4j.CmdLineException
        Specified by:
        parseArguments in class org.kohsuke.args4j.spi.OptionHandler<RevCommit>
      • getDefaultMetaVariable

        public String getDefaultMetaVariable()
        Specified by:
        getDefaultMetaVariable in class org.kohsuke.args4j.spi.OptionHandler<RevCommit>