Created
December 15, 2014 06:56
-
-
Save Fodoj/e283c385ebe19a946a75 to your computer and use it in GitHub Desktop.
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
def files_changed?(repository, path_to_previous_revision, files) | |
`cd #{repository} && git log HEAD...$(cat #{path_to_previous_revision}) -- #{files} | wc -l`.to_i > 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment