mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 15:50:38 +08:00
Allows watching and waiting for refs to change. This is especially useful for tests. For now, we don't show it in the output of `rad`.
21 lines
674 B
Markdown
21 lines
674 B
Markdown
The `rad watch` command allows you to watch a reference and return when it
|
|
reaches a target commit.
|
|
|
|
``` ~bob
|
|
$ git rev-parse refs/remotes/alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/master
|
|
f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354
|
|
```
|
|
|
|
``` ~alice
|
|
$ git rev-parse master
|
|
f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354
|
|
$ git commit --allow-empty -m "Minor update" -q
|
|
$ git rev-parse master
|
|
e09c4dc1b54443ceea715ea648afecdcfd1dd7d0
|
|
$ git push rad master
|
|
```
|
|
|
|
``` ~bob
|
|
$ rad watch --repo rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --node z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi --ref 'refs/heads/master' --target e09c4dc1b54443ceea715ea648afecdcfd1dd7d0 --interval 500
|
|
```
|