diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-04-10 17:41:44 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-04-10 19:01:08 -0700 |
| commit | 161f445a4dc4518199b132ee4c380788aee2ac63 (patch) | |
| tree | 5fad9f5ba60ed8915614163e8d8e5c72135347ab /project.py | |
| parent | 68194f42b0b0e59f206b8e997c26f6a16b74fd4f (diff) | |
| download | git-repo-161f445a4dc4518199b132ee4c380788aee2ac63.tar.gz | |
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 <sop@google.com>
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -352,7 +352,7 @@ class Project(object): | |||
| 352 | df = self.work_git.DiffZ('diff-files') | 352 | df = self.work_git.DiffZ('diff-files') |
| 353 | do = self.work_git.LsOthers() | 353 | do = self.work_git.LsOthers() |
| 354 | if not di and not df and not do: | 354 | if not di and not df and not do: |
| 355 | return | 355 | return 'CLEAN' |
| 356 | 356 | ||
| 357 | out = StatusColoring(self.config) | 357 | out = StatusColoring(self.config) |
| 358 | out.project('project %-40s', self.relpath + '/') | 358 | out.project('project %-40s', self.relpath + '/') |
| @@ -400,6 +400,7 @@ class Project(object): | |||
| 400 | else: | 400 | else: |
| 401 | out.write('%s', line) | 401 | out.write('%s', line) |
| 402 | out.nl() | 402 | out.nl() |
| 403 | return 'DIRTY' | ||
| 403 | 404 | ||
| 404 | def PrintWorkTreeDiff(self): | 405 | def PrintWorkTreeDiff(self): |
| 405 | """Prints the status of the repository to stdout. | 406 | """Prints the status of the repository to stdout. |
