def commit_author_time_and_branch_ref(run, master_branch): get_refs = for_each_ref('refs/remotes/origin/**', format='%(refname:short) %(authordate:unix)') with run(get_refs) as program: for branch, t in columns(program.stdout): get_time = log(f"{master_branch}..{branch}", format='%at') with run(get_time) as inner_program: for author_time, in columns(inner_program.stdout): yield int(author_time), branch
def test_log_limit(): assert log(limit=10) == ["git", "log", "-10"]
def test_log_format(): assert log(format='%a') == ["git", "log", "--format=%a"]
def test_log_selector(): assert log('selector') == ["git", "log", "selector"]
def test_log_normal(): assert log() == ["git", "log"]