BK-REPOGCA(1)

πŸ“¦ version 7.3.3, in alpine 3.24

okay bestie, meet bk repogca from the BitKeeper User’s Manual β€” the lil command that hunts down the greatest common ancestor across a whole set of repositories, and it is literally giving β€œwhere do all our histories agree?” energy πŸ’…βœ¨

✨ NAME ✨

bk repogca β€” show greatest common ancestor across a set of repositories πŸ¦‹

🌸 SYNOPSIS 🌸

bk repogca [βˆ’dspec] [βˆ’5kS] [repo repo ...]

πŸ’– DESCRIPTION πŸ’–

okay so here’s the vibe: this command prints the latest revision in the current repository that exists in all of the remote repositories β€” either the ones you list on the command line or the ones implied in the parent pointer[s] 🫢. By default, bk parent is the remote repository. no cap.

πŸ’… OPTIONS πŸ’…

  • βˆ’dspec β€” use spec as the specification for displaying the revision ✨
  • βˆ’βˆ’dspecf=file β€” like βˆ’d, but read the dspec from a file πŸ“‚
  • βˆ’5 β€” a short hand for asking for a spec of :MD5KEY: πŸ”₯
  • βˆ’k β€” a short hand for asking for a spec of :KEY: πŸ‘‘
  • βˆ’S β€” in a component in a nested collection, produce the repo gca of the component instead of the repo gca of the product 🧚

πŸŽ€ EXAMPLES πŸŽ€

want a traditional patch for the changes that exist only in the local repository? say less:

bk export ‐tpatch ‐r`bk repogca`,+ > patch

want to throw away all local work that doesn’t exist in a remote repository? here’s the move:

bk undo ‐a`bk repogca URL`
⚠️ Warning: This might also throw away some local csets which also exist in the remote repository. That can happen if there are multiple common ancestors on different branches. The ancestor chosen is the one created most recently. 😭

πŸ”₯ SEE ALSO πŸ”₯

also check out bk‐gca and bk‐log β€” iykyk πŸ‘€

🌈 CATEGORY 🌈

Utility β€” that’s the category, bestie πŸ’œ


made with πŸ’– by BitKeeper Inc, version 1E1, date none β€” slay, bye! 🫢🌸

πŸ“¦ 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