Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Example:
|`svn.sourceControl.combineExternalIfSameServer`|Combine the svn external in the main if is from the same server.|`false`|
|`svn.sourceControl.countUnversioned`|Allow to count unversioned files in status count|`true`|
|`svn.sourceControl.countIgnoreOnCommit`|Allow to count ignored files to commit in status count|`false`|
|`svn.sourceControl.hideUnversioned`|Hide unversioned files in Source Control UI|`false`|
|`svn.log.length`|Number of commit messages to log|`50`|
|`svn.showOutput`|Show the output window when the extension starts|`false`|
|`svn.conflicts.autoResolve`|Set file to status resolved after fix conflictss|`false`|
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,11 @@
"type": "number",
"description": "Set the interval in seconds to check changed files on remote repository and show in statusbar. 0 to disable",
"default": 300
},
"svn.sourceControl.hideUnversioned": {
"type": "boolean",
"description": "Hide unversioned files in Source Control UI",
"default": false
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ export class Repository {
);
});

const hideUnversioned = configuration.get<boolean>(
"sourceControl.hideUnversioned"
);

for (const status of statusesRepository) {
if (status.path === ".") {
this.isIncomplete = status.status === Status.INCOMPLETE;
Expand Down Expand Up @@ -435,6 +439,10 @@ export class Repository {
} else if (status.status === Status.CONFLICTED) {
conflicts.push(resource);
} else if (status.status === Status.UNVERSIONED) {
if (hideUnversioned) {
continue;
}

const matches = status.path.match(
/(.+?)\.(mine|working|merge-\w+\.r\d+|r\d+)$/
);
Expand Down