Skip to content

Commit 48f3794

Browse files
chris-camposcopybara-github
authored andcommitted
Make showRef with refs param public
BUG=414634331 PiperOrigin-RevId: 753308647 Change-Id: I936fffe1ce22b7d297d0d7eb465e0159a6491d58
1 parent d50b3fc commit 48f3794

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/com/google/copybara/git/GitRepository.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,11 @@ static String validateUrl(String url) throws RepoException, ValidationException
800800
/**
801801
* Execute show-ref git command in the local repository and returns a map from reference name to
802802
* GitReference(SHA-1).
803+
*
804+
* @param refs the refs to pass to the git show-ref command
805+
* @return the result of git show-ref
803806
*/
804-
ImmutableMap<String, GitRevision> showRef(Iterable<String> refs) throws RepoException {
807+
public ImmutableMap<String, GitRevision> showRef(Iterable<String> refs) throws RepoException {
805808
ImmutableMap.Builder<String, GitRevision> result = ImmutableMap.builder();
806809
CommandOutput commandOutput = gitAllowNonZeroExit(NO_INPUT,
807810
ImmutableList.<String>builder().add("show-ref").addAll(refs).build(),

0 commit comments

Comments
 (0)