Skip to content

Instantly share code, notes, and snippets.

@Fodoj
Created December 15, 2014 06:56
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 Fodoj/e283c385ebe19a946a75 to your computer and use it in GitHub Desktop.
Save Fodoj/e283c385ebe19a946a75 to your computer and use it in GitHub Desktop.
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