workspace-tools 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "workspace-tools",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 21 Jul 2022 21:11:05 GMT",
5
+ "date": "Thu, 21 Jul 2022 21:21:43 GMT",
6
+ "tag": "workspace-tools_v0.25.1",
7
+ "version": "0.25.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "dannyfritz@gmail.com",
12
+ "package": "workspace-tools",
13
+ "comment": "Use git ls-files for checkUntrackedFiles",
14
+ "commit": "f19c194e3636c08c2c3367daff9510efc07559da"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 21 Jul 2022 21:11:11 GMT",
6
21
  "tag": "workspace-tools_v0.25.0",
7
22
  "version": "0.25.0",
8
23
  "comments": {
@@ -11,7 +26,7 @@
11
26
  "author": "dlannoye@microsoft.com",
12
27
  "package": "workspace-tools",
13
28
  "comment": "BREAKING CHANGE: Improve detection of git root and throw if not found",
14
- "commit": "00be591c06d9c14eba7f2b76cb8aac5f0246fdec"
29
+ "commit": "5a18b0d43f1a434b8ee7b03f7b5e273e2aee8330"
15
30
  }
16
31
  ]
17
32
  }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - workspace-tools
2
2
 
3
- This log was last generated on Thu, 21 Jul 2022 21:11:05 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 21 Jul 2022 21:21:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.25.1
8
+
9
+ Thu, 21 Jul 2022 21:21:43 GMT
10
+
11
+ ### Patches
12
+
13
+ - Use git ls-files for checkUntrackedFiles (dannyfritz@gmail.com)
14
+
7
15
  ## 0.25.0
8
16
 
9
- Thu, 21 Jul 2022 21:11:05 GMT
17
+ Thu, 21 Jul 2022 21:11:11 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -8,22 +8,7 @@ exports.listAllTrackedFiles = exports.getDefaultBranch = exports.parseRemoteBran
8
8
  const git_1 = require("./git");
9
9
  function getUntrackedChanges(cwd) {
10
10
  try {
11
- const results = (0, git_1.git)(["status", "--short"], { cwd });
12
- if (!results.success || !results.stdout) {
13
- return [];
14
- }
15
- const lines = results.stdout.split(/[\r\n]+/).filter((line) => line);
16
- const untracked = [];
17
- for (let i = 0; i < lines.length; i++) {
18
- const line = lines[i];
19
- if (line[0] === " " || line[0] === "?") {
20
- untracked.push(line.substring(3));
21
- }
22
- else if (line[0] === "R") {
23
- i++;
24
- }
25
- }
26
- return untracked;
11
+ return processGitOutput((0, git_1.git)(["ls-files", "--others", "--exclude-standard"], { cwd }));
27
12
  }
28
13
  catch (e) {
29
14
  throw new git_1.GitError(`Cannot gather information about untracked changes`, e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workspace-tools",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",