gitea/modules
zeripath edfebe65b1
Finally fix diff names ()
* Finally fix diff names

 attempted to fix diff by avoiding the git diff line as
it is possible to have an ambiguous line here.

 attempted to fix diff by assuming that names would quoted
if they needed to be and if one was quoted then both would be.

Both of these were wrong.

I have now discovered `--src-prefix` and `--dst-prefix` which
means that we can set this in such a way to force the git diff
to always be unambiguous.

Therefore this PR rollsback most of the changes in  and
uses these options to fix this.

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

* Update services/gitdiff/gitdiff.go

* Update services/gitdiff/gitdiff.go

* Update modules/repofiles/temp_repo.go

* fix test

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

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-10-14 07:49:33 +03:00
..
analyze
auth hCaptcha Support () 2020-10-02 23:37:53 -04:00
avatar Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) () 2020-09-06 20:53:33 +01:00
base Use a simple format for the big number on ui () 2020-09-16 00:07:18 -04:00
cache Allow common redis and leveldb connections () 2020-09-28 00:09:46 +03:00
charset Ensure that the detected charset order is set in chardet test () 2020-08-23 14:15:29 +01:00
context [API] If User is Admin, show 500 error message on PROD mode too () 2020-10-12 20:41:49 -04:00
convert [] Add Timestamp to Tag list API () 2020-10-05 12:07:54 +08:00
cron Add ssh certificate support () 2020-10-10 20:38:09 -04:00
emoji Fix emoji detection in certain cases () 2020-07-25 16:40:04 +03:00
eventsource Move EventSource to SharedWorker () 2020-07-03 10:55:36 +01:00
generate
git Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
gitgraph Render the git graph on the server () 2020-08-06 09:04:08 +01:00
graceful Set TLS minimum version to 1.2 () 2020-09-02 23:37:49 +01:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight Escape failed highlighted code () 2020-09-02 16:19:42 -04:00
httplib
indexer fix: use Base36 for all code indexers () 2020-09-14 13:40:07 +03:00
lfs LFS support to be stored on minio () 2020-09-08 23:45:10 +08:00
log Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
markup Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
metrics
migrations Gitea 2 Gitea migration () 2020-10-14 07:06:00 +03:00
nosql Allow common redis and leveldb connections () 2020-09-28 00:09:46 +03:00
notification Fix repository create/delete event webhooks () 2020-10-02 10:37:46 +01:00
options
password Check passwords against HaveIBeenPwned () 2020-09-08 17:06:39 -05:00
pprof
private Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set () 2020-08-30 08:24:39 +01:00
process
public fix go1.15 lint error in modules/public/public.go () 2020-09-04 16:15:54 +03:00
queue Fix the issue reported on () 2020-09-28 19:00:54 -04:00
recaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
references Add spent time to referenced issue in commit message () 2020-09-04 11:37:37 -04:00
repofiles Finally fix diff names () 2020-10-14 07:49:33 +03:00
repository Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
secret Attachments: Add extension support, allow all types for releases () 2020-10-05 01:49:33 -04:00
session Allow common redis and leveldb connections () 2020-09-28 00:09:46 +03:00
setting Provide self-registering storage system () 2020-10-12 23:58:34 -04:00
ssh Add ssh certificate support () 2020-10-10 20:38:09 -04:00
storage Provide self-registering storage system () 2020-10-12 23:58:34 -04:00
structs Gitea 2 Gitea migration () 2020-10-14 07:06:00 +03:00
svg Fix filepath basename on Windows for SVG bindata () 2020-07-13 21:16:40 +01:00
sync
task Log the underlying panic in runMigrateTask () 2020-10-11 14:51:13 -04:00
templates Use a simple format for the big number on ui () 2020-09-16 00:07:18 -04:00
test Macaron 1.5 () 2020-08-27 22:47:17 -04:00
timeutil
upload Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
user
util Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
validation
webhook Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00