BK-REPOTYPE(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’… bk repotype β€” display repository type

ok so this is bk repotype, straight out of the BitKeeper User's Manual (section none, if you were wondering) πŸ’–


✨ SYNOPSIS ✨

bk repotype [-q] [directory]

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, this command literally just tells you what kind of repo you're standing in πŸ’… it prints the type of the repository, and that type is one of exactly three gorgeous little options: traditional, product, or component. that's it. that's the whole vibe check 🌸

and like, important lore: all repositories created by versions of BitKeeper prior to bk-5.0 are traditional standalone repositories. no cap, every single one 🫢

also β€” if you pass a directory, BitKeeper will change to that directory before running the command. it's giving "walk in, then do the thing" energy ✨

πŸŽ€ OPTIONS πŸŽ€

  • -q β€” Run quietly, exit status only. no chatty output, just the number, iykyk 🀫

πŸ’€ EXIT STATUS πŸ’€

ok this is the part where you actually pay attention, because the exit codes are doing the most 😭

When run without -q, the exit status is 0 for all valid repositories, and is 3 otherwise.

When run with -q, bk repotype returns exit status:

  1. 0 β€” if run on a product repository πŸ‘‘
  2. 1 β€” if run on a component repository 🧚
  3. 2 β€” if run on a traditional (standalone) repository πŸ“
  4. 3 β€” if run on a non-repository or if some other error occurs πŸ’€
so with -q you're getting an actual answer inside the exit code itself β€” like the number literally tells you which of the three types you have. iconic, honestly. but also 3 means "nope, not a repo, or something went wrong" so don't go mistaking it for a fourth type πŸ™ˆ

🌈 CATEGORY 🌈

Utility

⭐ SEE ALSO ⭐

that's it, no SEE ALSO entries β€” this page keeps its circle small πŸ’œ


and that's the whole page, bestie!! brought to you by BitKeeper Inc, version 1E1, dated bk repotype(none) β€” slay, go check your repo type πŸ’–βœ¨

πŸ“¦ where this page comes from
  • alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms