BK-REPOGCA(1)
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
- Copyright (c) 1998-2015 BitKeeper Inc
- Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms