gitea/models
mrsdizzie 7780ea8890 Fix ParsePatch function to work with quoted diff --git strings (#6323)
* Fix ParsePatch to work properly with quoted diff --git string

Currently ParsePatch fails when a diff contains a quoted diff line like:

diff --git "a/file" "b/file"

This patch makes it properly parse the line when that happens.

Fixes #6309

* Add test for regular case while here

* Simplify string modification
2019-03-14 18:09:53 +02:00
..
fixtures Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
migrations update git vendor to fix wrong release commit id and add migrations (#6224) 2019-03-11 11:44:58 +08:00
access_test.go
access.go
action_list.go
action_test.go Add option to close issues via commit on a non master branch (#5992) 2019-02-10 21:27:19 +02:00
action.go Copyedit docs (#6275) 2019-03-09 16:15:45 -05:00
admin_test.go
admin.go Remove util.RemoveAll - should have been removed since go 1.7 (#6299) 2019-03-10 23:56:36 +02:00
attachment_test.go
attachment.go
branches_test.go
branches.go
consistency.go
error_oauth2.go
error.go Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
external_login_user.go
git_diff_test.go Fix ParsePatch function to work with quoted diff --git strings (#6323) 2019-03-14 18:09:53 +02:00
git_diff.go Fix ParsePatch function to work with quoted diff --git strings (#6323) 2019-03-14 18:09:53 +02:00
gpg_key_test.go
gpg_key.go
graph_test.go
graph.go
helper.go
issue_assignees_test.go
issue_assignees.go Copyedit docs (#6275) 2019-03-09 16:15:45 -05:00
issue_comment_list.go
issue_comment_test.go
issue_comment.go Refactor issue indexer (#5363) 2019-02-19 09:39:39 -05:00
issue_dependency_test.go
issue_dependency.go
issue_label_test.go Add label names as filter in issue search api (#5946) 2019-02-04 10:20:44 -05:00
issue_label.go Add label names as filter in issue search api (#5946) 2019-02-04 10:20:44 -05:00
issue_list_test.go
issue_list.go Refactor issue indexer (#5363) 2019-02-19 09:39:39 -05:00
issue_lock.go Implement "conversation lock" for issue comments (#5073) 2019-02-18 22:55:04 +02:00
issue_mail.go
issue_milestone_test.go
issue_milestone.go
issue_reaction_test.go
issue_reaction.go
issue_stopwatch_test.go
issue_stopwatch.go
issue_test.go Add more tests and docs for issue indexer, add db indexer type for searching from database (#6144) 2019-02-21 13:01:28 +08:00
issue_tracked_time_test.go
issue_tracked_time.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue.go Add ability to sort issues by due date (#6206) (#6244) 2019-03-05 09:39:41 -05:00
lfs_lock.go
lfs.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 2019-02-12 15:07:31 +02:00
login_source.go Fix prohibit login check on authorization (#6106) 2019-02-19 09:19:28 +02:00
mail.go
main_test.go
models_sqlite.go
models_test.go
models.go Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
notification_test.go
notification.go
oauth2_application_test.go Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
oauth2_application.go Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
oauth2.go
org_team_test.go
org_team.go
org_test.go Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
org.go Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
pull_test.go
pull.go Pull request conflict files detection (#5951) 2019-02-05 06:54:49 -05:00
release_test.go
release.go
repo_activity.go
repo_branch.go update git vendor to fix wrong release commit id and add migrations (#6224) 2019-03-11 11:44:58 +08:00
repo_collaboration_test.go
repo_collaboration.go
repo_indexer.go
repo_issue.go
repo_list_test.go
repo_list.go Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
repo_mirror.go
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 2019-02-22 11:14:45 -05:00
repo_permission.go fix bug when update owner team then visit team's repo return 404 (#6119) 2019-02-22 11:14:45 -05:00
repo_redirect_test.go
repo_redirect.go
repo_tag.go Add API to list tags (#5850) 2019-02-07 12:00:52 +00:00
repo_test.go
repo_unit.go
repo_watch_test.go
repo_watch.go
repo.go Fix reported issue in repo description (#6306) 2019-03-11 22:23:34 -04:00
review_test.go
review.go
ssh_key_test.go
ssh_key.go Fix ssh deploy and user key constraints (#1357) (#5939) 2019-02-03 23:56:53 +00:00
star_test.go
star.go
status_test.go
status.go
test_fixtures.go
token_test.go
token.go
topic_test.go
topic.go
twofactor.go
u2f_test.go Override xorm type mapping for U2F counter (#6232) 2019-03-04 21:34:52 -05:00
u2f.go Override xorm type mapping for U2F counter (#6232) 2019-03-04 21:34:52 -05:00
unit_tests.go refactor issue indexer, add some testing and fix a bug (#6131) 2019-02-21 08:54:05 +08:00
unit.go
update_test.go
update.go
upload.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 2019-02-12 15:07:31 +02:00
user_follow_test.go
user_follow.go
user_heatmap_test.go
user_heatmap.go
user_mail_test.go
user_mail.go
user_openid_test.go
user_openid.go
user_test.go add isAdmin to user model (#6231) 2019-03-03 17:57:24 -05:00
user.go Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
webhook_dingtalk.go Fix deadlock in webhook PullRequest (#6102) 2019-02-17 21:12:39 +00:00
webhook_discord.go Fix deadlock in webhook PullRequest (#6102) 2019-02-17 21:12:39 +00:00
webhook_slack.go Fix deadlock in webhook PullRequest (#6102) 2019-02-17 21:12:39 +00:00
webhook_test.go
webhook.go
wiki_test.go
wiki.go Fix serving of raw wiki files other than .md (#5814) 2019-02-05 20:58:55 -05:00