No revision @(Reference ?? "HEAD") in @Repository.
@(Path is { Length: > 0 } ? Path : "/") @Counted(entries) at @view.Commit.ShortSha
| mode | name | size |
|---|---|---|
| .. | ||
| @Mode(entry.Kind) | @if (entry.Kind == GitEntryKind.Submodule) { @entry.Name @entry.Sha[..10] } else { @entry.Name } | @(entry.Kind == GitEntryKind.Directory ? "" : Size(entry.Size)) |
@blob.Path @Size(blob.Size)@(blob.Lines is { } counted ? $" · {Counted(counted.Count, "line")}" : "") · raw · history
@if (blob.IsBinary) {Binary file. Download it to look inside.
} else if (blob.TooLarge) {Too large to print here. Read it raw.
} else if (blob.Lines is { Count: 0 }) {Empty file.
} else if (blob.Lines is { } lines) { @* Every line is addressable: #L42 scrolls to it and marks it, so a line of code can be linked to from anywhere. *@| @number | @lines[number - 1] |
Nothing browsable at @Path in @view.Reference.