diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-15 14:13:10 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-15 14:13:10 +0200 |
commit | b4e367bf4a28b5495bc349df6fff0694ae73b9c2 (patch) | |
tree | 302117c3ac81494253ee43e6b181d1fb6654fb96 /src | |
parent | c179f668e5bf64499169b17515bdc4c40473fca9 (diff) |
FlakeRef::to_string(): Drop the "flake:" prefix
This is unnecessary in most contexts and makes 'nix flake list' output
less readable.
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/primops/flakeref.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc index ab1e5e152..274552218 100644 --- a/src/libexpr/primops/flakeref.cc +++ b/src/libexpr/primops/flakeref.cc @@ -120,7 +120,7 @@ std::string FlakeRef::to_string() const { std::string string; if (auto refData = std::get_if<FlakeRef::IsAlias>(&data)) - string = "flake:" + refData->alias; + string = refData->alias; else if (auto refData = std::get_if<FlakeRef::IsGitHub>(&data)) { assert(!ref || !rev); |