You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services/gitdiff
zeripath 327f18c3b2
Fix initial commit page & binary munching problem (#13249)
* Fix initial commit page

Unfortunately as a result of properly fixing ParsePatch the hack that
used git show <initial_commit_id> to get the diff for this failed.

This PR fixes this using the "super-secret" empty tree ref to make the
diff against.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Also fix #13248

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update services/gitdiff/gitdiff.go

Co-authored-by: 6543 <6543@obermui.de>
4 years ago
..
testdata/academic-module Fix panic when diff (#9187) 5 years ago
gitdiff.go Fix initial commit page & binary munching problem (#13249) 4 years ago
gitdiff_test.go Add better error checking for inline html diff code (#13239) 4 years ago
main_test.go Move git diff codes from models to services/gitdiff (#7889) 5 years ago