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<RefString> TO_LATEST_CHANGESET This field is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use TO_LATEST_COMMIT instead.
public static final Function<RefString> TO_LATEST_COMMIT Retrieve the latest commit to this ref.
[Expand]
Inherited Fields
From interface com.atlassian.stash.repository.MinimalRef
Public Methods
@Deprecated @Nonnull String getLatestChangeset()
This method is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use getLatestCommit() instead.
@Nonnull String getLatestCommit()
The ID of the commit at the tip of this ref.
[Expand]
Inherited Methods
From interface com.atlassian.stash.repository.MinimalRef

Fields

public static final Function<RefString> TO_LATEST_CHANGESET

This field is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use TO_LATEST_COMMIT instead.

Retrieve the latest changeset to this ref.

public static final Function<RefString> TO_LATEST_COMMIT

Retrieve the latest commit to this ref.

Public Methods

@Deprecated @Nonnull public String getLatestChangeset ()

This method is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use getLatestCommit() instead.

The hash of the changeset referred to by this reference.

Returns
  • the hash of the referenced changeset

@Nonnull public String getLatestCommit ()

The ID of the commit at the tip of this ref.

Returns
  • the tip commit's ID