Determining URLs updated via a series of commit logs

Posted by adamrubin on Stack Overflow See other posts from Stack Overflow or by adamrubin
Published on 2010-03-21T03:37:13Z Indexed on 2010/03/21 3:41 UTC
Read the original article Hit count: 530

Filed under:
|
|

I'm working on a project where I programmatically need to know when a URL has been changed by a developer, post or during deploy. The obvious answer may be to curl the URL one day, save the output, then curl and in x days then do a diff. That won't work in my case, as I'm only looking for changes the developer mande. If the site is a blog, new comments, user submitted photos, etc would make that curl diff useless.

RoR example, using github. Let's assume I have access to the entire repository and all commit logs between iterations. Is there a way I could see that "/views/people/show.html.erb" was commited, then backtrack from there (maybe by inspecting routes.rb), to come up with the URL I can then hit via a browser?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about git