pijul add: Print actual number of paths added
Dependencies
- [2]
ZDK3GNDBTag transactions (including a massive refactoring of errors) - [3]
UAXGGNAZImprove command feedback - [4]
YGPEHOTElibpijul::fs::add_{file,dir} now return the created Inode - [5]
G7VOM2IMReturning an error when recording non-existent paths - [6]
J33DKFPMDo not traverse unindexed directories in `pijul diff -su` - [7]
2RXOCWUWMaking libpijul deterministic (and getting rid of `rand`) - [8]
4OCC6D42Recursive add - [9]
OJZWJUF2MUCH faster `pijul add -r` - [10]
3SJ3DJNFAdding a --force option to `pijul add`, to include otherwise ignored files - [11]
HSEYMLO2Adding an untracked change iterator - [12]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [13]
RZ2FSIQ2Fixing `pijul add -r .` - [14]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [15]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [16]
I24UEJQLVarious post-fire fixes - [17]
LOJL4HMYRecording a prefix we just deleted (mostly useful in `pijul git`, regular records returned NotFound) - [*]
4VWXL6KQCorrect handling of ignore files
Change contents
- edit in pijul/src/commands/file_operations.rs at line 135[19.44][4.171551]
let mut paths_tracked = 0; - replacement in pijul/src/commands/file_operations.rs at line 154
repo.working_copy.add_prefix_rec(paths_tracked += repo.working_copy.add_prefix_rec( - replacement in pijul/src/commands/file_operations.rs at line 161
)?)?; - edit in pijul/src/commands/file_operations.rs at line 187[19.784][19.784]
} else {paths_tracked += 1; - replacement in pijul/src/commands/file_operations.rs at line 194
writeln!(stderr, "Tracked {} path(s)", self.paths.iter().count())?;writeln!(stderr, "Tracked {} path(s)", paths_tracked)?; - replacement in libpijul/src/working_copy/filesystem.rs at line 240
) -> Result<(), AddError<T>> {) -> Result<usize, AddError<T>> {let mut paths_tracked = 0; - replacement in libpijul/src/working_copy/filesystem.rs at line 254
Ok(_) => {}Ok(_) => {paths_tracked += 1;} - replacement in libpijul/src/working_copy/filesystem.rs at line 261
Ok(())Ok(paths_tracked)