(pattern string)
| 1553 | } |
| 1554 | |
| 1555 | func sanitizePattern(pattern string) string { |
| 1556 | if strings.HasPrefix(pattern, "/") { |
| 1557 | return pattern[1:] |
| 1558 | } |
| 1559 | |
| 1560 | return pattern |
| 1561 | } |
| 1562 | |
| 1563 | // GetFilesChanged returns a list of files which were changed, either between 2 |
| 1564 | // commits, or at a single commit if you only supply one argument and a blank |