diff: Fix diff command
bda488b434acd05c7ef5883dac9bed94fd2df5e4
1 parent
2ec50517
crates/repo/src/git.rs
+1 -0
| 96 | 96 | } |
|
| 97 | 97 | ||
| 98 | 98 | /// Runs `git diff` with raw command-line arguments. |
|
| 99 | 99 | pub fn diff_output(&self, args: &[OsString]) -> Result<Output, RepoError> { |
|
| 100 | 100 | self.command("diff") |
|
| 101 | + | .arg("--full-index") |
|
| 101 | 102 | .args(args) |
|
| 102 | 103 | .output() |
|
| 103 | 104 | .map_err(RepoError::Io) |
|
| 104 | 105 | } |
|
| 105 | 106 |