public interface

Ref

implements MinimalRef
com.atlassian.stash.repository.Ref
Known Indirect Subclasses

Class Overview

Common abstraction between reference types like branches and tags.

Summary

Fields
public static final Function<? super Ref, String> TO_LATEST_CHANGESET Retrieve the id of the latest changeset for a given ref.
[Expand]
Inherited Fields
From interface com.atlassian.stash.repository.MinimalRef
Public Methods
@Nonnull String getLatestChangeset()
The hash of the changeset referred to by this reference.
[Expand]
Inherited Methods
From interface com.atlassian.stash.repository.MinimalRef

Fields

public static final Function<? super Ref, String> TO_LATEST_CHANGESET

Retrieve the id of the latest changeset for a given ref.

Public Methods

@Nonnull public String getLatestChangeset ()

The hash of the changeset referred to by this reference.

Returns
  • the hash of the referenced changeset