Untracked files when there are no other changes

pmeunier
Jul 21, 2021, 2:16 PM
NWU66ZIPZ33WVBFVGVKI67E2F2UDB7QOVDWGRKYO2BAVWG7CMUGQC

Dependencies

  • [2] HSEYMLO2 Adding an untracked change iterator
  • [3] VSTBTRYE Fixing a compilation error
  • [4] YDKNUL6B Add `diff --short` that lists changes without showing them
  • [5] I52XSRUH Massive cleanup, and simplification
  • [6] AGTMM5U7 More informative diff --short
  • [7] OQQ4TGEM Printing modifications only once in pijul diff
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in pijul/src/commands/diff.rs at line 80
    [9.175108]
    [9.175108]
    let txn = txn.read();
    if self.short {
    for path in untracked(&repo, &*txn)? {
    writeln!(stdout, "U {}", path.to_str().unwrap())?;
    }
    } else if self.untracked {
    for path in untracked(&repo, &*txn)? {
    writeln!(stdout, "{}", path.to_str().unwrap())?;
    }
    }
  • replacement in pijul/src/commands/diff.rs at line 218
    [2.1950][2.1950:2018]()
    writeln!(stdout, "U {}", path.to_str().unwrap())?;
    [2.1950]
    [3.5627]
    writeln!(stdout, "U {}", path.to_str().unwrap())?;