Repositories

grarr

(mirrored on github)

Wim Looman <wim@nemo157.com>
ece31c Add linkable id for files in diff
Wim Looman committed at 2016-03-10 14:00:20

Modified src/render/diff.rs

@@ -126,7 +126,7 @@ renderers! {
Diff(diff: &'a git2::Diff<'a>) {
@for (delta, hunks) in group(diff).unwrap() {
div.diff.block {
div.diff.block id=^delta.id() {
^DiffHeader(&delta)
^DiffDetails(delta.id(), delta.new_file.or(delta.old_file).and_then(|path| path.extension().map(|s| s.to_string_lossy().into_owned())), hunks)
}