Skip to content

Instantly share code, notes, and snippets.

@tored
Created February 15, 2012 09:17
Show Gist options
  • Save tored/1834665 to your computer and use it in GitHub Desktop.
Save tored/1834665 to your computer and use it in GitHub Desktop.
Git: diff mode changes
git diff ${GIT_HASH} --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'\n' chmod +x
git diff ${GIT_HASH} --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'\n' chmod -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment