(nameStyle NameStyle)
| 155 | } |
| 156 | |
| 157 | func (i *item) Footnote(nameStyle NameStyle) string { |
| 158 | if i.path == nil || i.path.OID == git.NullOID { |
| 159 | return "" |
| 160 | } |
| 161 | switch nameStyle { |
| 162 | case NameStyleNone: |
| 163 | return "" |
| 164 | case NameStyleHash: |
| 165 | return i.path.OID.String() |
| 166 | case NameStyleFull: |
| 167 | return i.path.String() |
| 168 | default: |
| 169 | panic("unexpected NameStyle") |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // If this item's alert level is at least as high as the threshold, |
| 174 | // return the string that should be used as its "level of concern" and |