We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd325a6 commit e7fbbc7Copy full SHA for e7fbbc7
1 file changed
src/git/parseOutput.ts
@@ -17,7 +17,7 @@ const GIT_STATUS_SPLIT = " -> ";
17
* Parse a line which was produced by the `git status --short` command.
18
*/
19
export function parseStatus(line: string): FileChange {
20
- if (line.length <= 4) {
+ if (line.length < 4) {
21
throw new Error(
22
`Input string must be at least 4 characters. Got: '${line}'`,
23
);
@@ -54,7 +54,7 @@ export function parseStatus(line: string): FileChange {
54
* than `undefined`).
55
56
export function parseDiffIndex(line: string): FileChange {
57
58
const errorMsg = `Invalid input. Input string must be at least 4 characters. Got: '${line}'`;
59
console.error(errorMsg);
60
throw new Error(errorMsg);
0 commit comments