BK-EDIT(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’… BK-EDIT(1) πŸ’…

okay so bestie, welcome to the bk edit(none) page β€” it’s from the BitKeeper User’s Manual, and it is literally about checking out a file for editing. no cap. πŸ’–

✨ NAME ✨

bk edit βˆ’ check out a file for editing. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

bk edit [βˆ’q] [βˆ’rrev] [file ... | βˆ’]

🌸 DESCRIPTION 🌸

If a file is not locked for writing β€” i.e., it is not visible in a directory listing or it is read-only β€” then use bk edit to check out the file and lock it, making it available for writing. slay. πŸ’…

bk edit with no options will check out all files in a directory. periodt. ✨

πŸ’– OPTIONS πŸ’–

  • βˆ’q β€” run quietly. shhh 🀫
  • βˆ’rrev β€” Edit the file, rolling it back to the contents specified by rev. (Or key or changeset revision. See bk help terms under β€œrev argument”.) BitKeeper will check out the tip revision combined with a set of include and exclude deltas needed to produce the requested revision.

🧚 NOTES 🧚

okay so it may seem like this step could be done with a simple

$ chmod +w foo.c

but that is not correct. bestie, the reason is keyword expansion. Keywords are expanded only in read-only files; they are unexpanded in locked files. For example, if a file contains %M% %I%, when it is not locked that will look like foo.c 1.2. If the file is modified after the chmod then the keywords will forever more be foo.c 1.2, which is not likely to be the desired result. 😭

One could argue that BitKeeper should try and catch this case (and it does β€” bk check will frequently fix it), but it is impossible to do so correctly in all cases. lowkey tragic, but fr fr. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • bk‐terms

🌈 CATEGORY 🌈

  • File
  • Common

source/version/date footer vibes: BitKeeper Inc Β· 1E1 Β· bk edit(none) β€” mwah πŸ’‹πŸ«Άβœ¨

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