Skip to content

Commit 547d683

Browse files
committed
Changed names to addFileToIgnore
1 parent b290c61 commit 547d683

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"category": "SVN"
210210
},
211211
{
212-
"command": "svn.ignore",
212+
"command": "svn.addFileToIgnore",
213213
"title": "Ignore",
214214
"category": "SVN"
215215
}
@@ -308,7 +308,7 @@
308308
"when": "config.svn.enabled && svnOpenRepositoryCount != 0"
309309
},
310310
{
311-
"command": "svn.ignore",
311+
"command": "svn.addFileToIgnore",
312312
"when": "false"
313313
}
314314
],
@@ -446,7 +446,7 @@
446446
"group": "2_modification"
447447
},
448448
{
449-
"command": "svn.ignore",
449+
"command": "svn.addFileToIgnore",
450450
"when":
451451
"config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned",
452452
"group": "1_modification"

src/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,8 @@ export class SvnCommands implements IDisposable {
10551055
await repository.finishCheckout();
10561056
}
10571057

1058-
@command("svn.ignore")
1059-
async propset(
1058+
@command("svn.addFileToIgnore")
1059+
async addFileToIgnore(
10601060
...resourceStates: SourceControlResourceState[]
10611061
): Promise<void> {
10621062
const selection = this.getResourceStates(resourceStates);
@@ -1074,7 +1074,7 @@ export class SvnCommands implements IDisposable {
10741074

10751075
for (const resource of resources) {
10761076
try {
1077-
await repository.ignore(resource.fsPath);
1077+
await repository.addFileToIgnore(resource.fsPath);
10781078
} catch (error) {
10791079
console.log(error);
10801080
window.showErrorMessage("Unable to set property");

src/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,9 @@ export class Repository {
696696
);
697697
}
698698

699-
async ignore(filePath: string) {
699+
async addFileToIgnore(filePath: string) {
700700
return await this.run(Operation.Ignore, () =>
701-
this.repository.ignore(filePath)
701+
this.repository.addFileToIgnore(filePath)
702702
);
703703
}
704704

src/svnRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ export class Repository {
405405
return parseSvnList(result.stdout);
406406
}
407407

408-
async ignore(filePath: string) {
408+
async addFileToIgnore(filePath: string) {
409409
const fileName = path.basename(filePath);
410410
const parentDir = path.dirname(filePath);
411411
let currentIgnore = "";

0 commit comments

Comments
 (0)