No commit @Sha in @Repository.
@view.Commit.Summary @foreach (var name in view.Commit.Refs) { @name }
- author
- @view.Commit.Author.Name <@view.Commit.Author.Email> · @Exact(view.Commit.Author.When) @if (Differs(view.Commit)) {
- committer
- @view.Commit.Committer.Name <@view.Commit.Committer.Email> · @Exact(view.Commit.Committer.When) }
- commit
- @view.Commit.Sha @if (view.Commit.Parents.Count > 0) {
- parent@(view.Commit.Parents.Count == 1 ? "" : "s")
-
@foreach (var parent in view.Commit.Parents)
{
@Shorten(parent)
}
}
- tree
- browse at this commit
@Changed(view.Diff) +@view.Diff.Added -@view.Diff.Deleted
@if (view.Diff.Files.Count == 0) {@(view.Commit.IsMerge ? "Nothing changed against the first parent — the other side brought it all." : "No changes.")
} else {| @file.Path | @ChangeLabel(file.Change) | +@file.Added -@file.Deleted |
This diff is longer than one page will show. The files below it keep their counts; read them at this commit's tree instead.
}@if (file.OldPath is { } old) { @old → } @file.Path +@file.Added -@file.Deleted
@if (file.IsBinary) {Binary file. Download it as it was here.
} else if (file.Skipped) {Too far down a long diff to render. @file.Added added, @file.Deleted removed.
} else if (file.Hunks.Count == 0) {@(ChangeLabel(file.Change) is { Length: > 0 } label ? label : "No textual change") — no lines changed.
} else {| @hunk.Header | ||
| @line.Text | ||
| @line.OldNumber | @line.NewNumber | |