We'll use this later.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
raise SHAError()
return sha
+def clean(tree=None):
+ cmd = ['git', 'clean', '-f', '-x', '-d', '-q']
+
+ process = subprocess.Popen(cmd,
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
+ close_fds=True, universal_newlines=True, cwd=tree)
+ stdout = process.communicate()[0]
+ process.wait()
+ _check(process)
+
def status(tree=None):
'''
For interpretation of the porcelain output refer to