gitea/services/gitdiff
Lunny Xiao 1352080ef7
Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046)
* Fix missing the first char when parsing diff hunk header
* Fix #35040
* Fix #35049

----

Introduced in
https://github.com/go-gitea/gitea/pull/12047/files#diff-de48c2f70e24ff5603180acf8b5ce9d0356ede8a45bfbf2a485707282ace6d6aR268

Before:

<img width="487" height="167" alt="image"
src="https://github.com/user-attachments/assets/17524c76-a296-4b4b-a4f9-c5150c41bae5"
/>

After:

<img width="749" height="144" alt="image"
src="https://github.com/user-attachments/assets/bcb12c76-c1ae-40f1-81b7-183d15f891db"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-11 15:18:41 -07:00
..
csv.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
csv_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
git_diff_tree.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
git_diff_tree_test.go Add go wrapper around git diff-tree --raw -r -M (#33369) 2025-02-07 00:58:28 +00:00
gitdiff.go Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046) 2025-07-11 15:18:41 -07:00
gitdiff_test.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
highlightdiff.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
highlightdiff_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
submodule.go add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
submodule_test.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00