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
#!/bin/sh | |
# | |
# This hook parses the Migrations directory and counts if there are any migrations to run. | |
# If there are no migrations, nothing will show - leaving the developer in peace :) | |
git log -m -1 --name-only --pretty="format:" &> new_migrations.log | |
COUNTER=0 | |
while read CMD; do | |
if [[ $CMD == *Migration* ]] | |
then |
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
Using MongoDB in golang with mgo |