codex-lens 0.1.32 → 0.1.33
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/dist/git-manager.js +3 -2
- package/package.json +1 -1
- package/src/git-manager.js +4 -2
package/dist/git-manager.js
CHANGED
|
@@ -51,8 +51,9 @@ class GitManager {
|
|
|
51
51
|
if (!line || line.length < 3) continue;
|
|
52
52
|
const indexStatus = line[0];
|
|
53
53
|
const workTreeStatus = line[1];
|
|
54
|
-
const
|
|
55
|
-
const
|
|
54
|
+
const relativePath = line.slice(3).trim();
|
|
55
|
+
const absolutePath = join(this.projectRoot, relativePath);
|
|
56
|
+
const fileInfo = { path: absolutePath, relativePath, indexStatus, workTreeStatus };
|
|
56
57
|
if (indexStatus !== " " && indexStatus !== "?") {
|
|
57
58
|
result.staged.push(fileInfo);
|
|
58
59
|
}
|
package/package.json
CHANGED
package/src/git-manager.js
CHANGED
|
@@ -57,9 +57,11 @@ class GitManager {
|
|
|
57
57
|
|
|
58
58
|
const indexStatus = line[0];
|
|
59
59
|
const workTreeStatus = line[1];
|
|
60
|
-
|
|
60
|
+
// git returns relative path, convert to absolute path
|
|
61
|
+
const relativePath = line.slice(3).trim();
|
|
62
|
+
const absolutePath = join(this.projectRoot, relativePath);
|
|
61
63
|
|
|
62
|
-
const fileInfo = { path, indexStatus, workTreeStatus };
|
|
64
|
+
const fileInfo = { path: absolutePath, relativePath, indexStatus, workTreeStatus };
|
|
63
65
|
|
|
64
66
|
// Staged changes (index)
|
|
65
67
|
if (indexStatus !== ' ' && indexStatus !== '?') {
|