feat(tools/git-r): git subcommand to display r/numbers for commits

Sadly, this can't quite be an alias (which would be difficult to
automatically set up anyways), since we want to check if an r/number is
part of the (upstream) canon branch.

The test script for the subcommand doubles up as a soundness check for
our pipelines ref creation.

Change-Id: I840af6556e50187c69490668bd8a18dd7dc25a86
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8844
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
sterni 2023-06-22 13:41:54 +02:00
parent aa2f1bbc69
commit a72e67c8af
3 changed files with 144 additions and 0 deletions

View file

@ -7,6 +7,7 @@ depot.nix.lazy-deps {
age.attr = "third_party.nixpkgs.age";
depotfmt.attr = "tools.depotfmt";
fetch-depot-inbox.attr = "tools.fetch-depot-inbox";
git-r.attr = "tools.git-r";
gerrit-update.attr = "tools.gerrit-update";
gerrit.attr = "tools.gerrit-cli";
hash-password.attr = "tools.hash-password";