def commit_change(repo):
    filename = random.choice(repo.getUnchangedFiles())
    with open(os.path.join(repo.path, filename), "ab") as f:
        print >>f, "Change at", time.asctime()
    repo.add(filename)
    return repo.commit(message="auto change at %s" % time.asctime())
dataset/ETHPy150Open Infinidat/gitpy/tests/utils.py/commit_change/original