Commit 850cd7a
authored
git: add diff length limit and truncation (#54)
* 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>1 parent 69d7f4e commit 850cd7a
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments