Move get_head_sha into testing since it is only used by tests.

This commit is contained in:
Anthony Sottile 2014-04-14 09:57:38 -07:00
parent db6e1afc75
commit 94d626691f
5 changed files with 15 additions and 15 deletions

View file

@ -22,11 +22,6 @@ def get_root():
return _get_root_new()
def get_head_sha(git_repo_path):
with local.cwd(git_repo_path):
return local['git']['rev-parse', 'HEAD']().strip()
@memoize_by_cwd
def get_staged_files():
return local['git']['diff', '--staged', '--name-only']().splitlines()