Skip to content

Commit

Permalink
gdcop: support multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
teeparham committed Dec 11, 2015
1 parent f50aab9 commit 85b3171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash/aliases.sh
Expand Up @@ -17,7 +17,7 @@ alias pull='git pull'
alias amend='git commit --amend'

# add -a to auto-correct: `gdcop -a`
alias gdcop="git diff --name-only | grep '\.rb' | xargs rubocop"
alias gdcop="git diff --name-only | grep '\.rb' | tr '\n' ' ' | sed 's/,$/\n/' | xargs rubocop"

export GITMASK='rb|js|html|erb|haml|slim|css|scss|jsx|rake|json|yml|c|h|cpp'
alias gitwho="git ls-tree --name-only -r HEAD | grep -E '\.($GITMASK)$' | xargs -n1 git blame --line-porcelain | grep '^author '|sort|uniq -c|sort -nr"
Expand Down

0 comments on commit 85b3171

Please sign in to comment.