add file getcommit.py, provide several methods for commit collection