Logo
Explore Help
Register Sign In
MediaMetz/gemini-cli
1
0
Fork 0
You've already forked gemini-cli
mirror of https://github.com/google-gemini/gemini-cli.git synced 2026-03-13 23:51:16 -07:00
Code Issues Packages Projects Releases Wiki Activity
Files
86eaa03f8a0c52bbcab2cb8b6554918e30918f66
gemini-cli/packages/core/src/tools/diffOptions.ts

13 lines
220 B
TypeScript
Raw Normal View History

Fix(diff): Hide whitespace changes in diffs with content changes - Updated the diff generation in `edit.ts` and `write-file.ts` to include the `ignoreWhitespace: true` option. - This ensures that whitespace-only changes are not highlighted in the diff output when there are other content modifications, making the diffs cleaner and easier to review. - Extract default diffing options into single source of truth. Fixes https://github.com/google-gemini/gemini-cli/issues/548
2025-05-25 22:38:44 -07:00
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as Diff from 'diff';
export const DEFAULT_DIFF_OPTIONS: Diff.PatchOptions = {
context: 3,
ignoreWhitespace: true,
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1520ms Template: 77ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API