java.lang.Object | ||
↳ | com.atlassian.bitbucket.commit.AbstractCommitRequest | |
↳ | com.atlassian.bitbucket.commit.LastModifiedRequest |
Describes a request to retrieve the commits that last modified the files in the specified
path
, from a given starting commit
. The result
should be similar to retrieving the latest commit
for each
file, but may be significantly more efficient since it can be done in a single request.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LastModifiedRequest.Builder |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.commit.AbstractCommitRequest
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the starting commit to use.
| |||||||||||
Retrieves the path where file modifications should be searched.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.commit.AbstractCommitRequest
| |||||||||||
From class
java.lang.Object
|
Retrieves the starting commit to use. This ID serves two purposes:
path
's file listing will use this commitBranch
or Tag
. Depending on which files
that commit directly modified, however, it's entirely possible none of the resulting last
modified commits will be this one.Retrieves the path where file modifications should be searched. Commits which modify files
directly below this path will be traversed to determine the most recent commit to modify each file.
null
, ""
and /
all indicate the root directory.
For example, consider a repository with the following contents. Entries ending with /
are
directories.
A request for the root directory will return the commit that last modified
src/
main/
java/
Example.java
resources/
atlassian-plugin.xml
pom.xml
pom.xml
, the only
file in the root directory. A request for src/main
will not return any modifications
because that path only contains subdirectories.
For performance reasons, there is no way to use this request to recursively find the last modification
for files in subdirectories. Each level must be requested individually. This aligns with how
streaming directories
works
when the recursive
flag is false
.
null
to search for file
modifications in the root directory