(e *files.FileMetadata, opts listOptions)
| 77 | } |
| 78 | |
| 79 | func formatFileMetadataWithOpts(e *files.FileMetadata, opts listOptions) string { |
| 80 | text := fmt.Sprintf("%s\t", e.PathDisplay) |
| 81 | if opts.long { |
| 82 | t := getTime(e, opts) |
| 83 | text = fmt.Sprintf("%s\t%s\t%s\t", e.Rev, humanize.IBytes(e.Size), formatTime(t, opts)) + text |
| 84 | } |
| 85 | return text |
| 86 | } |
| 87 | |
| 88 | func formatDeletedMetadata(e *files.DeletedMetadata, longFormat bool) string { |
| 89 | text := fmt.Sprintf("%s\t", e.PathDisplay) |