Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ea4b2b985f4c
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 59bd6e87a44f
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 9, 2020

  1. Copy the full SHA
    59bd6e8 View commit details
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/libutil/args.cc
9 changes: 5 additions & 4 deletions src/libutil/args.cc
Original file line number Diff line number Diff line change
@@ -19,10 +19,11 @@ void Args::addFlag(Flag && flag_)

void Completions::add(std::string completion, std::string description)
{
insert(Completion{
.completion = completion,
.description = description
});
assert(description.find('\n') == std::string::npos);
insert(Completion {
.completion = completion,
.description = description
});
}

bool Completion::operator<(const Completion & other) const