Skip to content

Commit

Permalink
Add .jj to VCS exclusions list
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Jan 4, 2025
1 parent b36ed52 commit e289d5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- New: `--copy-vcs` option and config option will copy `.git` and other VCS directories, to accommodate trees whose tests depend on the contents or presence of the VCS directory.

- New: Add `.jj` to the list of known VCS directories. These are excluded by default when copying the tree, but can be included using `--copy-vcs=true`.

## 24.11.2

- Changed: `.gitignore` (and other git ignore files) are only consulted when copying the tree if it is contained within a directory with a `.git` directory.
Expand Down
1 change: 1 addition & 0 deletions book/src/build-dirs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ By default, files or directories matching these patterns are not copied, because

.git
.hg
.jj
.bzr
.svn
_darcs
Expand Down
4 changes: 2 additions & 2 deletions src/copy_tree.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 - 2024 Martin Pool
// Copyright 2023 - 2025 Martin Pool

//! Copy a source tree, with some exclusions, to a new temporary directory.
Expand All @@ -22,7 +22,7 @@ mod windows;
#[cfg(windows)]
use windows::copy_symlink;

static VCS_DIRS: &[&str] = &[".git", ".hg", ".bzr", ".svn", "_darcs", ".pijul"];
static VCS_DIRS: &[&str] = &[".git", ".hg", ".bzr", ".svn", "_darcs", ".jj", ".pijul"];

/// Copy a source tree, with some exclusions, to a new temporary directory.
pub fn copy_tree(
Expand Down

0 comments on commit e289d5e

Please sign in to comment.