@jxtools/visualgit 1.5.3 → 1.5.5

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/index.html CHANGED
@@ -8,8 +8,8 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com" />
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10
10
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
11
- <script type="module" crossorigin src="/assets/index-BJixwCV1.js"></script>
12
- <link rel="stylesheet" crossorigin href="/assets/index-FFrn9ftE.css">
11
+ <script type="module" crossorigin src="/assets/index-CWd-uaM5.js"></script>
12
+ <link rel="stylesheet" crossorigin href="/assets/index-AckP9fZU.css">
13
13
  </head>
14
14
  <body>
15
15
  <div id="root"></div>
@@ -12,12 +12,10 @@ export function createGitRouter(repoPath, isGitRepo) {
12
12
  const currentBranch = await gitService.getCurrentBranch();
13
13
  const baseBranch = await gitService.getBaseBranch(currentBranch);
14
14
  const repoName = await gitService.getRepoName();
15
- const aheadBehind = await gitService.getAheadBehind(baseBranch, currentBranch);
16
15
  res.json({
17
16
  repoName,
18
17
  currentBranch,
19
18
  baseBranch,
20
- ...aheadBehind,
21
19
  });
22
20
  }
23
21
  catch {
@@ -38,14 +38,4 @@ export class GitService {
38
38
  catch { /* fallback */ }
39
39
  return 'repo';
40
40
  }
41
- async getAheadBehind(baseBranch, currentBranch) {
42
- try {
43
- const result = await this.git.raw(['rev-list', '--left-right', '--count', `${baseBranch}...${currentBranch}`]);
44
- const [behind, ahead] = result.trim().split('\t').map(Number);
45
- return { ahead: ahead || 0, behind: behind || 0 };
46
- }
47
- catch {
48
- return { ahead: 0, behind: 0 };
49
- }
50
- }
51
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxtools/visualgit",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Terminal-style git diff viewer with AI-powered explanations",
5
5
  "type": "module",
6
6
  "bin": {