Last active
October 22, 2019 06:51
-
-
Save gmarokov/44ee43fe0377f87dc25bd62aa8223347 to your computer and use it in GitHub Desktop.
ASP.NET post merge git hook for displaying available migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
changed_files="$(git diff ORIG_HEAD HEAD --name-only | grep "/Migrations/")" [[ ! -z $changed_files ]] && echo -e "\e[91mIncoming Migrations!\e[39m $changed_files" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment