示例#1
0
文件: crumb.py 项目: paulgb/crumb
class Crumb(object):
    def __init__(self):
        #self.log = logging.getLogger(__name__)

        self.repo = GitRepo()
        self.config = Configuration(self.repo)


    def run(self, command):
        runner = Runner(self.config)

        relpath = path.relpath('.', self.repo.basedir)

        with repo_clone(self.repo, self.config) as clone_dir:
            annotations = runner.run(clone_dir, relpath, command)
            self.repo.annotate(annotations)


    def export(self, out_file):
        exporter = CSVExporter(self.repo, self.config)
        exporter.export(out_file)
示例#2
0
文件: crumb.py 项目: paulgb/crumb
    def __init__(self):
        #self.log = logging.getLogger(__name__)

        self.repo = GitRepo()
        self.config = Configuration(self.repo)
示例#3
0
def fetch_jobs_stdin():
    for line in sys.stdin:
        yield GitRepo(line.strip())