git_worktree_cli/
constants.rs

1/// Main/master branch names that are protected from deletion
2pub const PROTECTED_BRANCHES: &[&str] = &["main", "master", "dev", "develop"];
3
4/// Default main branch names to check
5#[allow(dead_code)]
6pub const DEFAULT_MAIN_BRANCHES: &[&str] = &["main", "master"];
7
8/// Git provider detection patterns
9#[allow(dead_code)]
10pub const GITHUB_HOST: &str = "github.com";
11#[allow(dead_code)]
12pub const BITBUCKET_CLOUD_HOST: &str = "bitbucket.org";
13
14/// API endpoints
15#[allow(dead_code)]
16pub const BITBUCKET_API_BASE: &str = "https://api.bitbucket.org/2.0";
17
18/// Hook environment variables
19#[allow(dead_code)]
20pub const HOOK_ENV_FORCE_COLOR: &str = "1";
21
22/// Git command patterns
23#[allow(dead_code)]
24pub const GIT_REFS_HEADS_PREFIX: &str = "refs/heads/";
25#[allow(dead_code)]
26pub const GIT_REFS_REMOTES_PREFIX: &str = "refs/remotes/";
27
28/// File extensions
29#[allow(dead_code)]
30pub const GIT_EXTENSION: &str = ".git";
31
32/// Configuration file
33#[allow(dead_code)]
34pub const CONFIG_FILE_NAME: &str = "git-worktree-config.jsonc";