MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / source_origin

Function source_origin

src/os/linux/bash_history.cpp:534–537  ·  view source on GitHub ↗

The `source` column is " / " where origin is "heap" or a real history filename (e.g. "bash/.bash_history", "zsh/heap").

Source from the content-addressed store, hash-verified

532// The `source` column is "<shell>/<origin>" where origin is "heap" or a real
533// history filename (e.g. "bash/.bash_history", "zsh/heap").
534std::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
539bool high_confidence_history(const ShellCmd& e) {
540 // Explicit confidence in the note wins.

Callers 1

high_confidence_historyFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected