The `source` column is " / " where origin is "heap" or a real history filename (e.g. "bash/.bash_history", "zsh/heap").
| 532 | // The `source` column is "<shell>/<origin>" where origin is "heap" or a real |
| 533 | // history filename (e.g. "bash/.bash_history", "zsh/heap"). |
| 534 | std::string source_origin(const ShellCmd& e) { |
| 535 | auto slash = e.source.find('/'); |
| 536 | return slash == std::string::npos ? std::string() : e.source.substr(slash + 1); |
| 537 | } |
| 538 | |
| 539 | bool high_confidence_history(const ShellCmd& e) { |
| 540 | // Explicit confidence in the note wins. |
no test coverage detected