From: swalter Date: Wed, 3 Dec 2008 17:41:08 +0000 (-0500) Subject: workdir: add usage and a completion message X-Git-Tag: v0.3~2^2~3 X-Git-Url: https://repo.or.cz/w/yap.git/commitdiff_plain/7a071e2f4d0e6b2dbd6853da57b9dc5d04571fe7 workdir: add usage and a completion message --- diff --git a/plugins/workdir.py b/plugins/workdir.py index b4a901e..e08b48b 100644 --- a/plugins/workdir.py +++ b/plugins/workdir.py @@ -47,6 +47,8 @@ class WorkdirPlugin(YapCore): continue def cmd_workdir(self, branch, workdir=None): + " [workdir]" + self._check_git() branches = get_output("git for-each-ref --format='%(refname)' 'refs/heads'") @@ -90,6 +92,8 @@ class WorkdirPlugin(YapCore): run_safely("git symbolic-ref HEAD refs/heads/%s" % branch) self.cmd_revert(**{'-a': 1}) + print "Workdir created at %s for branch %s" % (workdir, branch) + def cmd_switch(self, branch, *args, **flags): self._check_git()