summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/gitdir.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py
index 6f85f742..d65db340 100644
--- a/morphlib/gitdir.py
+++ b/morphlib/gitdir.py
@@ -475,6 +475,12 @@ class GitDirectory(object):
self.fat_init()
self.fat_pull()
+ def reset_workdir(self): # pragma: no cover
+ '''Removes any differences between the current commit
+ and the status of the working directory '''
+
+ morphlib.git.reset_workdir(cliapp.runcmd, self.dirname)
+
def branch(self, new_branch_name, base_ref): # pragma: no cover
'''Create a git branch based on an existing ref.