1
0
Fork 0

info: print superproject revision

Bug: 416589884
Change-Id: I5d1c709518d76d777a7f07c4c774569773c5a265
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/478205
Lint: Scott Lee <ddoman@google.com>
Tested-by: Scott Lee <ddoman@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Scott Lee <ddoman@google.com>
This commit is contained in:
Scott Lee 2025-05-27 18:36:42 +00:00 committed by LUCI
parent 06338abe79
commit 3c8bae27ec
2 changed files with 29 additions and 1 deletions

View file

@ -102,6 +102,10 @@ class Info(PagedCommand):
self.heading("Manifest groups: ")
self.headtext(manifestGroups)
self.out.nl()
sp = self.manifest.superproject
srev = sp.commit_id if sp and sp.commit_id else "None"
self.heading("Superproject revision: ")
self.headtext(srev)
self.printSeparator()