(refspecs)
| 6 | } |
| 7 | |
| 8 | static from(refspecs) { |
| 9 | const rules = [] |
| 10 | for (const refspec of refspecs) { |
| 11 | rules.push(GitRefSpec.from(refspec)) // might throw |
| 12 | } |
| 13 | return new GitRefSpecSet(rules) |
| 14 | } |
| 15 | |
| 16 | add(refspec) { |
| 17 | const rule = GitRefSpec.from(refspec) // might throw |