diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-06-15 11:34:53 +0100 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-06-16 16:23:29 +0000 |
commit | 706bbe19ff87ac65d21634246c0bc3d5acb57562 (patch) | |
tree | a3ae8d01f85002e9fbc530ecce9878e41a61c9c9 /morphlib/gitdir.py | |
parent | de9577e3a797c3e2efd4bd69b9dad902f7c9c09d (diff) | |
download | morph-706bbe19ff87ac65d21634246c0bc3d5acb57562.tar.gz |
Expose reset_workdir in GitDirectory class
Change-Id: Ib2d7bd31bea49c052a59582524382df6b931a31f
Diffstat (limited to 'morphlib/gitdir.py')
-rw-r--r-- | morphlib/gitdir.py | 6 |
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. |