mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
FlakeRef::to_string(): Drop the "flake:" prefix
This is unnecessary in most contexts and makes 'nix flake list' output less readable.
This commit is contained in:
parent
c179f668e5
commit
b4e367bf4a
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ std::string FlakeRef::to_string() const
|
||||||
{
|
{
|
||||||
std::string string;
|
std::string string;
|
||||||
if (auto refData = std::get_if<FlakeRef::IsAlias>(&data))
|
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)) {
|
else if (auto refData = std::get_if<FlakeRef::IsGitHub>(&data)) {
|
||||||
assert(!ref || !rev);
|
assert(!ref || !rev);
|
||||||
|
|
Loading…
Reference in a new issue