OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bdeb2
)
fix diff bug
author
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 11:48:23 +0000
(19:48 +0800)
committer
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 11:48:23 +0000
(19:48 +0800)
app/views/commits/_text_file.html.haml
patch
|
blob
|
history
diff --git
a/app/views/commits/_text_file.html.haml
b/app/views/commits/_text_file.html.haml
index
ed9adff
..
cb54299
100644
(file)
--- a/
app/views/commits/_text_file.html.haml
+++ b/
app/views/commits/_text_file.html.haml
@@
-2,6
+2,7
@@
- line_new = 0
- lines_arr = diff.diff.lines.to_a
- lines_arr.each do |line|
+ - line = line.force_encoding(Encoding::UTF_8)
- next if line.match(/^--- \/dev\/null/)
- next if line.match(/^--- a/)
- next if line.match(/^\+\+\+ b/)