mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
guix gc: Add --references' and --referrers'.
* guix/scripts/gc.scm (show-help): Update. (%options): Add `--references' and `--referrers'. (guix-gc)[symlink-target, store-directory]: New procedures. Handle the `list-references' and `list-referrers' actions. * tests/guix-gc.sh: Add tests for `--references'. * doc/guix.texi (Invoking guix gc): Document `--references' and `--referrers'.
This commit is contained in:
@@ -657,6 +657,18 @@ store---i.e., files and directories no longer reachable from any root.
|
||||
|
||||
@item --list-live
|
||||
Show the list of live store files and directories.
|
||||
|
||||
@end table
|
||||
|
||||
In addition, the references among existing store files can be queried:
|
||||
|
||||
@table @code
|
||||
|
||||
@item --references
|
||||
@itemx --referrers
|
||||
List the references (respectively, the referrers) of store files given
|
||||
as arguments.
|
||||
|
||||
@end table
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user