returns ‘clean’ if there are no modified files, ‘modified’ otherwise.
Show Source
<def attrs='dir' tag='git-clean'> <% dir=RAILS_ROOT if dir.blank? -%> <%= Dir.chdir(dir) {`git ls-files -m`}.blank? ? "clean" : "modified" -%> </def>