modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
()
| 56 | |
| 57 | // modeOctal renders the git mode as a six-digit octal string (e.g. 100644). |
| 58 | func (e dirEntry) modeOctal() string { |
| 59 | return fmt.Sprintf("%06o", e.Mode) |
| 60 | } |
| 61 | |
| 62 | // ExportData implements the cmdutil exportable interface for a single entry. |
| 63 | func (e dirEntry) ExportData(fields []string) map[string]interface{} { |
no outgoing calls