mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
Fix number of lines being reported in rewind confirmation dialog (#18675)
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
coreEvents,
|
||||
debugLogger,
|
||||
getFileDiffFromResultDisplay,
|
||||
computeAddedAndRemovedLines,
|
||||
computeModelAddedAndRemovedLines,
|
||||
} from '@google/gemini-cli-core';
|
||||
|
||||
export interface FileChangeDetail {
|
||||
@@ -61,7 +61,7 @@ export function calculateTurnStats(
|
||||
if (fileDiff) {
|
||||
hasEdits = true;
|
||||
const stats = fileDiff.diffStat;
|
||||
const calculations = computeAddedAndRemovedLines(stats);
|
||||
const calculations = computeModelAddedAndRemovedLines(stats);
|
||||
addedLines += calculations.addedLines;
|
||||
removedLines += calculations.removedLines;
|
||||
|
||||
@@ -112,7 +112,7 @@ export function calculateRewindImpact(
|
||||
if (fileDiff) {
|
||||
hasEdits = true;
|
||||
const stats = fileDiff.diffStat;
|
||||
const calculations = computeAddedAndRemovedLines(stats);
|
||||
const calculations = computeModelAddedAndRemovedLines(stats);
|
||||
addedLines += calculations.addedLines;
|
||||
removedLines += calculations.removedLines;
|
||||
files.add(fileDiff.fileName);
|
||||
|
||||
Reference in New Issue
Block a user