BK-GFILES(1)
π 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 GNUxargs -0.-1β Only examine the current (or named) directory. Do not go into subdirectories.-aβ Examine all files, even if listed inBitKeeper/etc/ignore.-cβ List changed files (locked and modified). Ifclock_skewis 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 β seeclock_skewinbk help config-etc.-Cβ Identical to-cexcept the file time stamps are not trusted.-dβ List directories under BitKeeper control (SCCSsubdir exists).-Dβ List directories with no (or empty)SCCSsubdirs.-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-xbelow) but are suppressed because they are present in theBitKeeper/etc/ignorefile. Note that this option works on files that were ignored, but not on directories that were pruned. There is no way to forcebk gfilesto descend into pruned directories.-jβ List junk files, i.e., files inSCCSsubdirectories which are not metadata.-lβ List locked files (p.fileand/orz.file).-nβ Lists.filesthat 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 thed.file. Use thes.filefor verification and create or delete thed.fileto match the status of thes.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 theChangeSetfile and everything belowBitKeeper/other thanBitKeeper/triggers/*.-vβ Prefix the output with information about the state of thes.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 filesDββββββ(-D) β a directory containing no BitKeeper files (but may have subdirectories with BitKeeper files).iββββββ(-i) β a file that is extra but is normally ignoredjββββββ(-j) β extra file under/dirRββββββ(-R) β the file is a sub-repository root (overrides-d)sββββββ(-s) β a file that is under BitKeeper controlxββββββ(-x) β a file that is not under BitKeeper controlslβββββ(-l) β a BitKeeper file that is lockedsuβββββ(-u) β a BitKeeper file that is not lockedslcββββ(-c) β a BitKeeper file that is locked and modified (aka changed)sββpβββ(-p) β a BitKeeper file that has one or more pending deltassβββGββ(-G) β a BitKeeper file that is checked out (aka gotten)sββββnβ(-n) β a BitKeeper file that is not in its recorded locationsβββββy(-y) β a BitKeeper file that has saved checkin commentsxβββββ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-noption is suppressed unless that option was specifically requested because of the performance implications. In other words, unless you add-nto 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-historybk-ignorebk-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
- 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