Skip to main content

changed_files_against

Function changed_files_against 

Source
pub fn changed_files_against(reference: &str) -> Result<HashSet<String>>
Expand description

Get the set of files changed relative to reference.

The result is the union of:

  • git diff --name-only <reference>...HEAD (committed changes since the merge base with reference)
  • git diff --name-only HEAD (uncommitted working-tree changes)
  • git ls-files --others --exclude-standard (untracked files)

Paths are relative to the current directory; files outside it are dropped.