优化文件树git状态检测性能
This commit is contained in:
@@ -147,7 +147,7 @@ function normalizePathSegments(path: string): string[] {
|
||||
}
|
||||
|
||||
function normalizeGitStatusPath(path: string): string {
|
||||
const normalized = path.trim()
|
||||
const normalized = path.trim().replace(/\/+$/, "")
|
||||
const renameSeparator = " -> "
|
||||
const renameIndex = normalized.lastIndexOf(renameSeparator)
|
||||
if (renameIndex < 0) return normalized
|
||||
|
||||
Reference in New Issue
Block a user