Skip to content

Instantly share code, notes, and snippets.

@yswallow
Created March 11, 2013 14:12
Show Gist options
  • Save yswallow/5134507 to your computer and use it in GitHub Desktop.
Save yswallow/5134507 to your computer and use it in GitHub Desktop.
git status から変更された.rbファイル名だけを表示する
$ git status | ruby -ne '/modified:\s+(.+?\.rb)/ =~ $_ ; print $1," " if $1'
=>
a.rb
b.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment