edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB7996a95Tahinli6 days ago3973 commits
| 1 | #!/usr/bin/env bash |
| 2 | # Print `-p <crate>` lines for the workspace crates affected by a change, for use as |
| 3 | # cargo test $(scripts/changed-crates.sh) |
| 4 | # |
| 5 | # Changed files = `git diff <base>...HEAD` + uncommitted (staged/unstaged) + untracked. |
| 6 | # Each changed file maps to the workspace package whose directory contains it. Those |
| 7 | # packages are then expanded to all their reverse dependencies inside the workspace |
| 8 | # (path dependencies only). A change to a root file (Cargo.toml, Cargo.lock, .config/, |
| 9 | # .cargo/, rust-toolchain*) selects every workspace crate. |
| 10 | # ec-hw and ec-va are dropped unless they changed themselves (GPU; no hardware encode). |
| 11 | # |
| 12 | # Usage: scripts/changed-crates.sh [BASE_REF] (BASE_REF defaults to main) |
| 13 | |
| 14 | |
| 15 | base="" |
| 16 | root="" |
| 17 | |
| 18 | |
| 19 | meta_file="" |
| 20 | |
| 21 | |
| 22 | |
| 23 | changed=" |
| 24 | |
| 25 | |
| 26 | |
| 27 | " |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 |