diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-13 14:06:10 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-13 14:06:34 -0700 |
commit | 4c5c7aa74b2dec2cbfb6b6bd7e24d5922e92c112 (patch) | |
tree | 68cd00e83ba4e2a8435a47ad95d0e78c5bb500e9 /subcmds | |
parent | ff84fea0bb67e249888e826af88286b9ccc5fab3 (diff) | |
download | git-repo-4c5c7aa74b2dec2cbfb6b6bd7e24d5922e92c112.tar.gz |
Document 'repo status' output
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/status.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 853f1508..0b6006ff 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
@@ -21,6 +21,44 @@ class Status(PagedCommand): | |||
21 | helpUsage = """ | 21 | helpUsage = """ |
22 | %prog [<project>...] | 22 | %prog [<project>...] |
23 | """ | 23 | """ |
24 | helpDescription = """ | ||
25 | '%prog' compares the working tree to the staging area (aka index), | ||
26 | and the most recent commit on this branch (HEAD), in each project | ||
27 | specified. A summary is displayed, one line per file where there | ||
28 | is a difference between these three states. | ||
29 | |||
30 | Status Display | ||
31 | -------------- | ||
32 | |||
33 | The status display is organized into three columns of information, | ||
34 | for example if the file 'subcmds/status.py' is modified in the | ||
35 | project 'repo' on branch 'devwork': | ||
36 | |||
37 | project repo/ branch devwork | ||
38 | -m subcmds/status.py | ||
39 | |||
40 | The first column explains how the staging area (index) differs from | ||
41 | the last commit (HEAD). Its values are always displayed in upper | ||
42 | case and have the following meanings: | ||
43 | |||
44 | -: no difference | ||
45 | A: added (not in HEAD, in index ) | ||
46 | M: modified ( in HEAD, in index, different content ) | ||
47 | D: deleted ( in HEAD, not in index ) | ||
48 | R: renamed (not in HEAD, in index, path changed ) | ||
49 | C: copied (not in HEAD, in index, copied from another) | ||
50 | T: mode changed ( in HEAD, in index, same content ) | ||
51 | U: unmerged; conflict resolution required | ||
52 | |||
53 | The second column explains how the working directory differs from | ||
54 | the index. Its values are always displayed in lower case and have | ||
55 | the following meanings: | ||
56 | |||
57 | -: new / unknown (not in index, in work tree ) | ||
58 | m: modified ( in index, in work tree, modified ) | ||
59 | d: deleted ( in index, not in work tree ) | ||
60 | |||
61 | """ | ||
24 | 62 | ||
25 | def Execute(self, opt, args): | 63 | def Execute(self, opt, args): |
26 | all = self.GetProjects(args) | 64 | all = self.GetProjects(args) |