BK-GFILES(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’– bk gfiles β€” BitKeeper User’s Manual πŸ’–

okay bestie, welcome to the BitKeeper User’s Manual page for bk gfiles β€” she’s the list-making main character πŸ‘‘.

✨ NAME ✨

bk gfiles β€” generate lists of BitKeeper controlled files.

🌸 SYNOPSIS 🌸

bk gfiles [-01acCdDgGijlnRsSuUvxy] [-p[A|C]] [dirs]

πŸ¦‹ DESCRIPTION πŸ¦‹

ok so bk gfiles is used to generate lists of revision control files, files related to revision control files, directories related (or not!) to revision control files, and/or files not under revision control. In other words, if you need a list of files, you’ve come to the right place β€” and yes, that is literally the whole vibe ✨.

bk gfiles without any arguments finds all s.files in or below the current working directory. This is what the bk -r command uses to generate the list of files to feed to command.

If a directory and/or file list is specified, then each of the items in the list is processed; directories are processed recursively.

πŸ”₯ OPTIONS πŸ”₯

Most of the options below may be combined to list files which are in different states. For example, -cx would list modified files and extra files not yet under BitKeeper control.

When combining options it is best to also add -v so that what is listed is unambiguous.

  • -0 β€” Use a null character (instead of a newline) to separate each filename printed. This is useful with GNU xargs -0.
  • -1 β€” Only examine the current (or named) directory. Do not go into subdirectories.
  • -a β€” Examine all files, even if listed in BitKeeper/etc/ignore.
  • -c β€” List changed files (locked and modified). If clock_skew is set in the config file, then the file time stamps and other attributes are used to speed scanning. The acceptable clock skew can be configured β€” see clock_skew in bk help config-etc.
  • -C β€” Identical to -c except the file time stamps are not trusted.
  • -d β€” List directories under BitKeeper control (SCCS subdir exists).
  • -D β€” List directories with no (or empty) SCCS subdirs.
  • -E β€” Shorthand which means β€œshow everything interesting in verbose format”. Currently the same as: -cdDGijlnRsuvxyp.
  • -G β€” List files only if they are checked out (β€œgotten”).
  • -Λ†G β€” List files only if they are not checked out (β€œnot gotten”). yes bestie, that Λ† is literally in the flag β€” keep it exactly like that πŸ’…
  • -i β€” List files which would normally be listed as extras (see -x below) but are suppressed because they are present in the BitKeeper/etc/ignore file. Note that this option works on files that were ignored, but not on directories that were pruned. There is no way to force bk gfiles to descend into pruned directories.
  • -j β€” List junk files, i.e., files in SCCS subdirectories which are not metadata.
  • -l β€” List locked files (p.file and/or z.file).
  • -n β€” List s.files that are not in the correct location.
  • -p β€” List files with one or more pending deltas.
  • -pC β€” List only the tip delta of files with one or more pending deltas, in the following format: file|tip_rev.
  • -pA β€” List all pending deltas of files with one or more pending deltas, in the following format: file|rev.
  • -P β€” Like -p, but don’t trust the d.file. Use the s.file for verification and create or delete the d.file to match the status of the s.file.
  • -R β€” List sub-repositories, i.e., any repository root within your tree other than your repository root.
  • -S β€” Produce a summary listing only, typically combined with -E.
  • -u β€” List unlocked files.
  • -U β€” List user files only, skipping the ChangeSet file and everything below BitKeeper/ other than BitKeeper/triggers/*.
  • -v β€” Prefix the output with information about the state of the s.file. The information is in a 7 character field, followed by a space, then followed by the filename. Each of the columns are described below, with the notation, then the option, then description. Script writers may depend on the format below with the following caveat: any additional information will be added in columns 8, 9, 10, etc. The first space found will be the separator between the annotations and the filename.
    • d‐‐‐‐‐‐ (-d) β€” a directory containing BitKeeper files
    • D‐‐‐‐‐‐ (-D) β€” a directory containing no BitKeeper files (but may have subdirectories with BitKeeper files).
    • i‐‐‐‐‐‐ (-i) β€” a file that is extra but is normally ignored
    • j‐‐‐‐‐‐ (-j) β€” extra file under / dir
    • R‐‐‐‐‐‐ (-R) β€” the file is a sub-repository root (overrides -d)
    • s‐‐‐‐‐‐ (-s) β€” a file that is under BitKeeper control
    • x‐‐‐‐‐‐ (-x) β€” a file that is not under BitKeeper control
    • sl‐‐‐‐‐ (-l) β€” a BitKeeper file that is locked
    • su‐‐‐‐‐ (-u) β€” a BitKeeper file that is not locked
    • slc‐‐‐‐ (-c) β€” a BitKeeper file that is locked and modified (aka changed)
    • s‐‐p‐‐‐ (-p) β€” a BitKeeper file that has one or more pending deltas
    • s‐‐‐G‐‐ (-G) β€” a BitKeeper file that is checked out (aka gotten)
    • s‐‐‐‐n‐ (-n) β€” a BitKeeper file that is not in its recorded location
    • s‐‐‐‐‐y (-y) β€” a BitKeeper file that has saved checkin comments
    • x‐‐‐‐‐y (-y) β€” an extra file that has saved checkin comments
Note: when verbose output is requested, as much information as possible is generated. Currently, the information requested by the -n option is suppressed unless that option was specifically requested because of the performance implications. In other words, unless you add -n to the options, that field will always be -.
  • -x β€” List files which have no revision control files.
  • -y β€” List files which have saved checkin comments; the files listed may be either extra files and/or files under BitKeeper control.

🌸 NOTES 🌸

bk gfiles will not descend into directories pruned in the BitKeeper/etc/ignore file.

The default ignore list shown in bk help ignore is always in effect even with -a.

Revision control files must look like SCCS/s.*, not foo/bar/blech/s.*.

🫢 SEE ALSO 🫢

  • bk-history
  • bk-ignore
  • bk-new

πŸŽ€ CATEGORY πŸŽ€

File


mwah πŸ’‹ β€” signed off by BitKeeper Inc, version 1E1, for bk gfiles(none). That’s the footer energy, bestie β€” periodt πŸ’…

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