diff options
author | Mike Frysinger <vapier@google.com> | 2021-06-14 16:09:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-06-15 06:08:00 +0000 |
commit | d88b369a42462cf5fe4ff2a09b9b7b52e0ee333a (patch) | |
tree | bcd0f894d7a5724298216916fb0cd162f25858a1 | |
parent | 4f21054c2841809da5e1e600b1cc765811288a80 (diff) | |
download | git-repo-d88b369a42462cf5fe4ff2a09b9b7b52e0ee333a.tar.gz |
commands: document the "event_log" class attribute
Add some notes explaining why it's instantiated at the Command class
level and not individual objects.
Change-Id: Ib8081bb8480e85f6d3dfc23953c6bbc6ecc64934
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/309323
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
-rw-r--r-- | command.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -43,10 +43,15 @@ class Command(object): | |||
43 | """Base class for any command line action in repo. | 43 | """Base class for any command line action in repo. |
44 | """ | 44 | """ |
45 | 45 | ||
46 | event_log = EventLog() | ||
47 | manifest = None | 46 | manifest = None |
48 | _optparse = None | 47 | _optparse = None |
49 | 48 | ||
49 | # Singleton for all commands to track overall repo command execution and | ||
50 | # provide event summary to callers. Only used by sync subcommand currently. | ||
51 | # | ||
52 | # NB: This is being replaced by git trace2 events. See git_trace2_event_log. | ||
53 | event_log = EventLog() | ||
54 | |||
50 | # Whether this command is a "common" one, i.e. whether the user would commonly | 55 | # Whether this command is a "common" one, i.e. whether the user would commonly |
51 | # use it or it's a more uncommon command. This is used by the help command to | 56 | # use it or it's a more uncommon command. This is used by the help command to |
52 | # show short-vs-full summaries. | 57 | # show short-vs-full summaries. |