Skip to content

miketaylr/commitgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

commitgrep.py*

What?

This utility clones a github hosted repository, runs git log -S<token>, and creates a table with hyperlinks to commits from the returned logs.

You'll get an .html file that looks something like this: http://miketaylr.github.io/commitgrep/. Or exactly like that.

Usage

python commitgrep.py repourl token [, token, ...]

To create a file named jquery.html which greps for commits that have something to do with the tokens firefox and gecko:

python commitgrep.py git@github.com:jquery/jquery.git firefox gecko

Email

If you pass in the optional --email argument, the script will send you an email from commitgrep@gmail.com with the commits containing the tokens rather than create an html file.

TODO: If it's the first time it is run, you'll get the output for the entire history of the repo. Subsequent repos will compare only the commits made since the last run, and if there's no match no email will be sent.

License

Licensed under the Mozilla Public License Version 2.0

*coming up with good names is hard. This doesn't even use --grep, because that's limited to log messages. :|

About

Tool to abuse `git log -S` and create an HTML file which links back to github.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages