zdev change
Read the stable change ID attached to a commit or find commits that carry a
known ID. This is useful after a rebase, when a Git hash can change while the
Zdev-Change-Id trailer remains the same.
Examples
Section titled “Examples”Inspect the latest commit, then the commit before it:
zdev change inspect HEADzdev change inspect HEAD~1 --format jsonSubcommands
Section titled “Subcommands”zdev change inspect REVISIONzdev change lookup CHANGE_IDinspect accepts a Git revision such as HEAD, a branch name, or a commit
hash, and reports its ID and subject. lookup finds all reachable commits
with the supplied stable ID. Copy the full ID beginning with Z from an
inspection result.
With a personal or shadow record, main-repository commits have no ID. For a
shadow record, inspect also lists the shadow commits that name the inspected
commit in Zdev-Source-Commit, with their IDs, and lookup searches the
shadow history too and shows the main commit each match names.
Both commands read Git history. Use commit to create a commit with an ID, or change-id to generate an unattached ID.