message: test variant to exclude dot-files/dirs by default
diff: @@ -1422,3 +1422,26 @@ fn gitignore_negate() {
  ",
  );
  }
  +
  +#[cargo_test]
  +fn exclude_dot_files_and_directories_by_default() {
  + include_exclude_test(
  + "[]",
  + "[]",
  + &["src/lib.rs", ".dotfile", ".dotdir/file"],
  + "Cargo.toml\n\
  + src/lib.rs\n\
  + ",
  + );
  +
  + include_exclude_test(
  + r#"["Cargo.toml", "src/lib.rs", ".dotfile", ".dotdir/file"]"#,
  + "[]",
  + &["src/lib.rs", ".dotfile", ".dotdir/file"],
  + ".dotdir/file\n\
  + .dotfile\n\
  + Cargo.toml\n\
  + src/lib.rs\n\
  + ",
  + );
  +}
  