(a, b string)
| 151 | } |
| 152 | |
| 153 | func 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 | |
| 165 | func NewRange(a, b string) (*Range, error) { |
| 166 | parseCmd := gitCmd("rev-parse", "-q", a, b) |
searching dependent graphs…