Prevent the addition of .pijul to the repository

[?]
Jan 7, 2021, 12:51 PM
AFWNXPBKW3PMUK5WRKRS7Z7F5Y7SUPZCJEVXXIUNXJLV4BPSCCBQC

Dependencies

  • [2] 4VWXL6KQ Correct handling of ignore files
  • [3] XTMYHJZL Changing the default filters for ignored files
  • [4] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [5] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [6] 4OCC6D42 Recursive add
  • [7] OJZWJUF2 MUCH faster `pijul add -r`

Change contents

  • replacement in pijul/src/commands/file_operations.rs at line 113
    [2.226][2.226:461](),[2.461][4.208:222](),[4.208][4.208:222]()
    if self.paths.len() > 1
    && !libpijul::working_copy::filesystem::filter_ignore(
    repo_path.as_ref(),
    path.as_ref(),
    meta.is_dir(),
    )
    {
    [2.226]
    [4.222]
    if !libpijul::working_copy::filesystem::filter_ignore(
    repo_path.as_ref(),
    path.as_ref(),
    meta.is_dir(),
    ) {
  • edit in libpijul/src/working_copy/filesystem.rs at line 19
    [2.1239]
    [2.1239]
    ignore.add_line(None, crate::DOT_DIR).unwrap();
  • replacement in libpijul/src/working_copy/filesystem.rs at line 154
    [4.1195][3.0:77]()
    walk.ignore(true).git_ignore(true).threads(threads - 1);
    [4.1195]
    [4.1291]
    walk.ignore(true)
    .git_ignore(true)
    .filter_entry(|p| p.file_name() != crate::DOT_DIR)
    .threads(threads - 1);