Skip to content

Commit

Permalink
Rename 'nix store make-content-addressable' to 'nix store make-conten…
Browse files Browse the repository at this point in the history
…t-addressed'
  • Loading branch information
edolstra committed Mar 24, 2022
1 parent f186075 commit 5acaf13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions doc/manual/src/release-notes/rl-next.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Release X.Y (202?-??-??)

* Various nix commands can now read expressions from stdin with `--file -`.

* `nix store make-content-addressable` has been renamed to `nix store
make-content-addressed`.
2 changes: 1 addition & 1 deletion src/nix/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
{"hash-path", {"hash", "path"}},
{"ls-nar", {"nar", "ls"}},
{"ls-store", {"store", "ls"}},
{"make-content-addressable", {"store", "make-content-addressable"}},
{"make-content-addressable", {"store", "make-content-addressed"}},
{"optimise-store", {"store", "optimise"}},
{"ping-store", {"store", "ping"}},
{"sign-paths", {"store", "sign"}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

using namespace nix;

struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
struct CmdMakeContentAddressed : StorePathsCommand, MixJSON
{
CmdMakeContentAddressable()
CmdMakeContentAddressed()
{
realiseMode = Realise::Outputs;
}
Expand All @@ -21,7 +21,7 @@ struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
std::string doc() override
{
return
#include "make-content-addressable.md"
#include "make-content-addressed.md"
;
}

Expand Down Expand Up @@ -50,4 +50,4 @@ struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
}
};

static auto rCmdMakeContentAddressable = registerCommand2<CmdMakeContentAddressable>({"store", "make-content-addressable"});
static auto rCmdMakeContentAddressed = registerCommand2<CmdMakeContentAddressed>({"store", "make-content-addressed"});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ R""(
* Create a content-addressed representation of the closure of GNU Hello:

```console
# nix store make-content-addressable -r nixpkgs#hello
# nix store make-content-addressed nixpkgs#hello
rewrote '/nix/store/v5sv61sszx301i0x6xysaqzla09nksnd-hello-2.10' to '/nix/store/5skmmcb9svys5lj3kbsrjg7vf2irid63-hello-2.10'
```
Expand All @@ -29,7 +29,7 @@ R""(
system closure:

```console
# nix store make-content-addressable -r /run/current-system
# nix store make-content-addressed /run/current-system
```

# Description
Expand Down

0 comments on commit 5acaf13

Please sign in to comment.