From 6214096efe86512ab64d01df01eeec6703350903 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Mon, 23 Nov 2020 09:42:51 -0500 Subject: [PATCH] Add missing comment on an exported function at prow/git Signed-off-by: Carlos Eduardo Arango Gutierrez --- prow/git/git.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prow/git/git.go b/prow/git/git.go index 2846191aa342..632e3e77cd94 100644 --- a/prow/git/git.go +++ b/prow/git/git.go @@ -460,6 +460,8 @@ func retryCmd(l *logrus.Entry, dir, cmd string, arg ...string) ([]byte, error) { return b, err } +// Diff runs 'git diff HEAD --name-only' and returns a list +// of file names with upcoming changes func (r *Repo) Diff(head, sha string) (changes []string, err error) { r.logger.Infof("Diff head with %s'.", sha) output, err := r.gitCommand("diff", head, sha, "--name-only").CombinedOutput()