MCPcopy
hub / github.com/mislav/hub / RefList

Function RefList

git/git.go:153–163  ·  view source on GitHub ↗
(a, b string)

Source from the content-addressed store, hash-verified

151}
152
153func RefList(a, b string) ([]string, error) {
154 ref := fmt.Sprintf("%s...%s", a, b)
155 listCmd := gitCmd("rev-list", "--cherry-pick", "--right-only", "--no-merges", ref)
156 listCmd.Stderr = nil
157 output, err := listCmd.Output()
158 if err != nil {
159 return nil, fmt.Errorf("Can't load rev-list for %s", ref)
160 }
161
162 return outputLines(output), nil
163}
164
165func NewRange(a, b string) (*Range, error) {
166 parseCmd := gitCmd("rev-parse", "-q", a, b)

Callers 2

pullRequestFunction · 0.92
TestGitRefListFunction · 0.85

Calls 4

gitCmdFunction · 0.85
outputLinesFunction · 0.85
OutputMethod · 0.80
ErrorfMethod · 0.65

Tested by 1

TestGitRefListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…