I love using Git to organize version control and backup all my web files in Wordpress.
After updating plugins, I\'d like to get the list of changes only on the direct s
try this:
git status --porcelain | awk '{print $2}' | xargs -n 1 dirname | uniq
awk '{print $2}'
get filename from list
xargs -n 1 dirname
extract dir from a full path
uniq
show only unique directories
uniq can be a little slower when you have many lines