···134134 Commit string
135135}
136136137137+// Path returns either the To or From path, in order of preference
138138+func (c CommitFile) Path() string {
139139+ if c.To.Path != "" {
140140+ return c.To.Path
141141+ }
142142+ return c.From.Path
143143+}
144144+137145// Short returns the first eight characters of the SHA
138146func (c Commit) Short() string {
139147 return c.SHA[:8]