From 161f445a4dc4518199b132ee4c380788aee2ac63 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 10 Apr 2009 17:41:44 -0700 Subject: status: tell the user the working tree is clean If there is nothing output at all, tell the user the working tree is completely clean. It just gives them a bit more of a warm-fuzzy feeling knowing repo and until the end. It also more closely matches with the output of git status. Signed-off-by: Shawn O. Pearce --- project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'project.py') diff --git a/project.py b/project.py index d2ec34fe..bd35c65e 100644 --- a/project.py +++ b/project.py @@ -352,7 +352,7 @@ class Project(object): df = self.work_git.DiffZ('diff-files') do = self.work_git.LsOthers() if not di and not df and not do: - return + return 'CLEAN' out = StatusColoring(self.config) out.project('project %-40s', self.relpath + '/') @@ -400,6 +400,7 @@ class Project(object): else: out.write('%s', line) out.nl() + return 'DIRTY' def PrintWorkTreeDiff(self): """Prints the status of the repository to stdout. -- cgit v1.2.3-54-g00ecf