Skip to main content

git_perf/git/
git_definitions.rs

1/// Min supported git version
2/// Git 2.43.0 supports symbolic references via git symbolic-ref command
3/// and automatic dereferencing in update-ref transactions
4pub const EXPECTED_VERSION: (i32, i32, i32) = (2, 43, 0);
5
6/// The main branch where performance measurements are stored as git notes
7pub const REFS_NOTES_BRANCH: &str = "refs/notes/perf-v3";
8
9/// Symbolic reference that points to the current write target for performance measurements
10pub const REFS_NOTES_WRITE_SYMBOLIC_REF: &str = "refs/notes/perf-v3-write";
11
12/// Prefix for temporary write target references used during concurrent operations
13pub const REFS_NOTES_WRITE_TARGET_PREFIX: &str = "refs/notes/perf-v3-write-";
14
15/// Prefix for temporary references used when adding new measurements
16pub const REFS_NOTES_ADD_TARGET_PREFIX: &str = "refs/notes/perf-v3-add-";
17
18/// Prefix for temporary references used when rewriting existing measurements
19pub const REFS_NOTES_REWRITE_TARGET_PREFIX: &str = "refs/notes/perf-v3-rewrite-";
20
21/// Prefix for temporary references used during merge operations
22pub const REFS_NOTES_MERGE_BRANCH_PREFIX: &str = "refs/notes/perf-v3-merge-";
23
24/// Branch used for reconciling and then reading performance measurements
25pub const REFS_NOTES_READ_PREFIX: &str = "refs/notes/perf-v3-read-";
26
27/// The default remote name used for git-perf operations
28pub const GIT_PERF_REMOTE: &str = "git-perf-origin";
29
30/// The standard git remote name
31pub const GIT_ORIGIN: &str = "origin";