Lines Matching refs:proj_path
28 def fetch(proj_path, remote_names): argument
35 _run(['git', 'fetch', '--multiple'] + remote_names, cwd=proj_path)
38 def add_remote(proj_path, name, url): argument
46 _run(['git', 'remote', 'add', name, url], cwd=proj_path)
49 def list_remotes(proj_path): argument
58 out = _run(['git', 'remote', '-v'], proj_path)
63 def get_commits_ahead(proj_path, branch, base_branch): argument
67 proj_path)
71 def get_commit_time(proj_path, commit): argument
73 out = _run(['git', 'show', '-s', '--format=%ct', commit], cwd=proj_path)
77 def list_remote_branches(proj_path, remote_name): argument
79 out = _run(['git', 'branch', '-r'], cwd=proj_path)
101 def list_remote_tags(proj_path, remote_name): argument
104 cwd=proj_path)
119 def merge(proj_path, branch): argument
123 cwd=proj_path)
126 subprocess.run(['git', 'merge', '--abort'], cwd=proj_path)
130 def add_file(proj_path, file_name): argument
132 _run(['git', 'add', file_name], cwd=proj_path)
135 def delete_branch(proj_path, branch_name): argument
137 _run(['git', 'branch', '-D', branch_name], cwd=proj_path)
140 def start_branch(proj_path, branch_name): argument
142 _run(['repo', 'start', branch_name], cwd=proj_path)
145 def commit(proj_path, message): argument
147 _run(['git', 'commit', '-m', message], cwd=proj_path)
150 def checkout(proj_path, branch_name): argument
152 _run(['git', 'checkout', branch_name], cwd=proj_path)
155 def push(proj_path, remote_name): argument
158 cwd=proj_path, redirect=False)