briandk / gitvisualizations

A suite of visualization tools for analyzing files in git
http://briandk.com/codetimeline_demos/simulator/simulator.html
3 stars 3 forks source link

RepoStatistics should have an option to ignore whitespace changes #52

Open briandk opened 11 years ago

briandk commented 11 years ago

Pass a -w flag to git log.

The easiest way is to add an argument to the argument parser

def parseCommandLineArguments(self):
        parser = argparse.ArgumentParser()
        parser.add_argument("repo_path", help="Path to the repo of interest")
        parser.add_argument("--since", help="the beginning of the time interval of interest")
        parser.add_argument("--until", help="the endpoint of the time interval of interest")
        parser.add_argument("-w", help="Ignore whitespace changes")
        return parser.parse_args()