Skip to content

git: add diff length limit and truncation#54

Merged
Emin017 merged 1 commit intomainfrom
limit-context-length
May 12, 2025
Merged

git: add diff length limit and truncation#54
Emin017 merged 1 commit intomainfrom
limit-context-length

Conversation

@Emin017
Copy link
Copy Markdown
Owner

@Emin017 Emin017 commented May 12, 2025

  • Add MAX_DIFF_LENGTH constant to limit git diff output
  • Truncate diff and add truncation notice when exceeding limit
  • Prevent potential issues with overly large diff outputs

@Emin017 Emin017 added enhancement New feature or request rust Pull requests that update rust code labels May 12, 2025
@Emin017 Emin017 added this to the 0.2.1 milestone May 12, 2025
* Add MAX_DIFF_LENGTH constant to limit git diff output
* Truncate diff and add truncation notice when exceeding limit
* Prevent potential issues with overly large diff outputs

Signed-off-by: Qiming Chu <cchuqiming@gmail.com>
@Emin017 Emin017 force-pushed the limit-context-length branch from 7b9af3b to 21c190f Compare May 12, 2025 14:01
@Emin017 Emin017 merged commit 850cd7a into main May 12, 2025
4 checks passed
@Emin017 Emin017 mentioned this pull request May 12, 2025
@Emin017 Emin017 deleted the limit-context-length branch July 20, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant