Skip to content

Commit f9e168c

Browse files
committed
exclude multiple git folders
1 parent 71b64b9 commit f9e168c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
All notable changes to the extension will be documented in this file.
44

5-
## [1.0.7] - 2024-01-20
5+
## [1.0.8] - 2024-01-20
66

7-
- Ask to exclude `.git` folder
7+
- Option to exclude `.git` folders
88

99
## [1.0.5] - 2024-01-17
1010

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Archives workspace folders respecting `.gitignore` files.
88

99
- Provides `Archive workspace folder` command which archives the entire workspace folder
1010
- All `.gitignore` files are respected
11-
- Option to exclude `.git` folder
11+
- Option to exclude `.git` folders
1212
- Supports multiple workspace folders
1313

1414
## Installation

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-archiver",
33
"displayName": "Archiver",
44
"description": "Workspace Folder Archiver",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"license": "MIT",
77
"publisher": "ecmel",
88
"author": {

src/provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export async function archive() {
2929

3030
if (git) {
3131
const picked = await window.showQuickPick(["Yes", "No"], {
32-
title: "Include .git folder?",
32+
title: "Include .git folders?",
3333
placeHolder: "Yes",
3434
});
3535

3636
if (picked === "No") {
37-
files = files.filter((file) => !file.startsWith(".git/"));
37+
files = files.filter((file) => !file.includes(".git/"));
3838
}
3939
}
4040

0 commit comments

Comments
 (0)