From 706bbe19ff87ac65d21634246c0bc3d5acb57562 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Mon, 15 Jun 2015 11:34:53 +0100 Subject: Expose reset_workdir in GitDirectory class Change-Id: Ib2d7bd31bea49c052a59582524382df6b931a31f --- morphlib/gitdir.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'morphlib/gitdir.py') 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. -- cgit v1.2.1