Sha256: 9e5f5b53973d060425e6cc0c686789dd86260fafbdc76d287cd4e17011e6916a

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

ul.diff-names
  - diffs.each do |diff|
    li
      - if diff.deleted_file
        a.deleted
          = diff.a_path
      - elsif diff.renamed_file
        a.renamed
          = "#{ diff.a_path } -> #{ diff.b_path }"
      -elsif diff.new_file
        a.new_file
          = diff.a_path
      -else
        a.changed
          = diff.a_path
ul.diffs
  - diffs.each do |diff|
    li
      - diff.diff.lines.each do |line|
        - if line.match /^\-\-\- a/
          .diff-first-line.diff-a
            = line
        - elsif line.match /^\+\+\+ b/
          .diff-first-line.diff-b
            = line
        - elsif line.match /^@@ -/
          .diff-summ-line
            = line
        - elsif line[0] == '+'
          .diff-added-line
            = line
        - elsif line[0] == '-'
          .diff-removed-line
            = line
        - else
          .diff-line
            = line


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zitgit-0.0.2 views/diffs/list.slim
zitgit-0.0.1 views/diffs/list.slim