Changeset 3054
- Timestamp:
- 12/11/07 20:33:23 (6 years ago)
- Files:
-
- 1 modified
-
lang/ruby/misc/diffcolor.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/misc/diffcolor.rb
r2951 r3054 4 4 colorize diff like vim. 5 5 and show \r and other space characters. 6 7 == usage 8 env LANG=C svn diff | diffcolor.rb | lv -c 9 svk diff | diffcolor.rb | less -R 6 10 7 11 == License … … 42 46 end 43 47 print "\e[#{color}m" 44 line.gsub!(/\r/) { "\e[34 m\\r" }45 line.gsub!(/[^\n\S]+/) { "\e[34;4m#{$&}\e[ #{color}m" }48 line.gsub!(/\r/) { "\e[34;4m\\r\e[0m" } 49 line.gsub!(/[^\n\S]+/) { "\e[34;4m#{$&}\e[0;#{color}m" } 46 50 puts line 47 51 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)