BK-COMMENTS(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’¬ bk comments β€” the glow-up your checkin comments deserve πŸ’…

okay so first things first: this is a page straight out of the BitKeeper User's Manual, bestie. bk comments is the command, and honestly? It's giving "makeover montage but for commit messages." ✨


🌸 SYNOPSIS 🌸

bk comments [βˆ’p] [βˆ’Ccset] [βˆ’rrev] [file ... | βˆ’]
bk comments [βˆ’Ccset] [βˆ’rrev] [βˆ’ycmt] [βˆ’Yfile] [file ... | βˆ’]

Two whole moods, one command. Pick your fighter. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So bk comments literally changes the stored comments for a revision controlled file. That's the whole vibe. πŸŽ€

You can hand over the comments right there on the command line β€” no drama β€” but if you don't, the command is gonna plop you into your editor so you can type them in yourself. Cozy, honestly.

And here's the cute part: if you pass - as a file argument, bk comments reads a list of files and the comments to be edited from stdin. The format is literally this:

### Comments for file.c|1.23
this is a sample comment
### Comments for file2.h|1.2.3.4
these are
other comments

Chef's kiss. 🧚 The header line tells it which file and revision, the lines after are the actual comment. Easy.


✨ OPTIONS ✨

  • βˆ’rrev β€” changes the comments for the revision you specify. If you don't say anything, it defaults to the most recent revision. main character default energy.
  • βˆ’ycomment β€” uses comment as the new comment for every single file. all of them. no cap.
  • βˆ’Yfile β€” uses the contents of file as the new comment for all files. same deal, but the comment text lives in a file instead.
  • βˆ’Crev β€” edits all the file comments on the requested changeset at once. lowkey powerful. πŸ‘‘ Cannot be combined with βˆ’r. that's a hard no.
  • βˆ’p β€” generates the list of all comments in the files you requested and writes them to stdout. Why would you want that? Because you can edit that output and then feed it right back into bk comments - on stdin to actually change the comments. iconic workflow, honestly. πŸ”₯
Also, heads up: if you give no files to edit on the command line, then βˆ’C+ is assumed and the comments for the files in the last changeset get edited. So it just… does the thing. πŸ’€

πŸ’€ BUGS πŸ’€

Nota bene, bestie β€” read this one twice:

If the deltas being commented have been committed to a changeset and have been pulled out of this repository, the comment changes will not propagate on the next bk pull. Like, they just won't. 😭

So it is strongly suggested that you use this only on uncommitted deltas which have not been pulled or cloned. That's the safe lane. Stay in it. πŸ™ˆ

In the future, they say, they'll add a way of enforcing this. Until then β€” behave. πŸ’œ


🌈 SEE ALSO 🌈

  • bk‐log
  • bk‐sccslog

πŸ“ CATEGORY πŸ“

File


and that's the whole page, bestie β€” go forth and fix those comments πŸ’–

This one's brought to you by BitKeeper Inc, version 1E1, dated bk comments(none) in the footer β€” mwah, ty for reading, ily, 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