Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Last active January 24, 2019 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud/6c7a0c61bf7b221b5c6d2f9e094ffc49 to your computer and use it in GitHub Desktop.
Save mahmoud/6c7a0c61bf7b221b5c6d2f9e094ffc49 to your computer and use it in GitHub Desktop.
Just a little thing to look for (potentially conflicting) migration changes across all branches. (linux/mac os/bsd compatible)
find . -type d -name migrations -print0 -exec sh -c 'echo && echo "Checking: '{}'" && git --no-pager log --exit-code --all --not master --stat --pretty=format:"%n%ad - %d - %an: %s" --no-merges --after="one week ago" -- '{}' && echo "No changes for: '{}'" || echo "Finished: '{}'"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment