public interface VcsLog
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getContainingBranches(Hash commitHash,
VirtualFile root)
Returns names of branches which contain the given commit, or null if this information is unavailable yet.
|
java.util.Map<VirtualFile,VcsLogProvider> |
getLogProviders()
Returns
VcsLogProviders which are active in this log, i.e. |
java.util.List<CommitId> |
getSelectedCommits()
Returns commits currently selected in the log.
|
java.util.List<VcsFullCommitDetails> |
getSelectedDetails()
Returns details of the selected commits.
|
java.util.List<VcsCommitMetadata> |
getSelectedShortDetails()
Returns metadata of the selected commit which are visible in the table.
|
java.util.concurrent.Future<java.lang.Boolean> |
jumpToReference(java.lang.String reference)
Asynchronously selects the commit node defined by the given reference (commit hash, branch or tag).
|
void |
requestSelectedDetails(Consumer<? super java.util.List<VcsFullCommitDetails>> consumer)
Sends a request to load details that are currently selected.
|
java.util.List<CommitId> getSelectedCommits()
java.util.List<VcsCommitMetadata> getSelectedShortDetails()
getSelectedDetails()
.
Still, check for LoadingDetails instance has to be done when using details from this list.java.util.List<VcsFullCommitDetails> getSelectedDetails()
void requestSelectedDetails(Consumer<? super java.util.List<VcsFullCommitDetails>> consumer)
consumer
- called in EDT after all details are loaded.java.util.Collection<java.lang.String> getContainingBranches(Hash commitHash, VirtualFile root)
java.util.concurrent.Future<java.lang.Boolean> jumpToReference(java.lang.String reference)
future
that allows to check if the commit was selected, wait for the selection while log is being loaded,
or cancel commit selection.java.util.Map<VirtualFile,VcsLogProvider> getLogProviders()
VcsLogProviders
which are active in this log, i.e. which VCS roots are shown in the log.