Class: Bard::CLI::Vim
- Defined in:
- lib/bard/cli/vim.rb
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#vim(branch = "master") ⇒ Object
5 6 7 |
# File 'lib/bard/cli/vim.rb', line 5 def vim branch="master" exec "vim -p `(git diff #{branch} --name-only; git ls-files --others --exclude-standard) | grep -v '^app/assets/images/' | grep -v '^app/assets/stylesheets/' | while read f; do [ -f \"$f\" ] && ! file -b \"$f\" | grep -q \"binary\" && echo \"$f\"; done | tac`" end |