Class LastModifiedCommandParameters


public class LastModifiedCommandParameters extends AbstractCommitCommandParameters
Describes a starting commit to traverse from, searching for the last commit to modify files in the requested path.

The starting commit is used to:

  • List the files in the requested path
  • Provide the anchor for traversing history to search for modifications to the listed files

If the requested path is null, "" or "/", it will be treated as a reference to the repository's root directory.

Since:
4.6
  • Method Details

    • getMaxMessageLength

      public int getMaxMessageLength()
      Returns:
      the maximum length to read for commit messages; if set, messages longer than this will be truncated; -1 indicates unlimited message length
    • toContext

      @Nonnull public LastModifiedContext toContext()
      Assembles a LastModifiedContext from these parameters.
      Returns:
      a LastModifiedContext describing these parameters