pub fn dirty(repo: &Path) -> Result<String, Trouble>Expand description
What is tracked and changed, as git says it.
Asked before going anywhere: an edit to a tracked file belongs to the version it was written against, and carrying it to another one is the kind of help that loses an afternoon.
Untracked files are not it, deliberately. A scratch notebook beside the code is not work that belongs to where somebody was, and refusing over one would make the verb unusable on the machine of anybody who keeps one.