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.
Mura Li 3186ef554c Support search operators for commits search (#6479)
* Support searching commits with prefix syntax

For now, support auther: committer:
When more than one prefix is supplied is presented, the result is the union.
When different prefixes are supplied, the result is the intersection.

For example,
"author:alice author:bob"
=> the result is all commits authored by Alice OR Bob

"hello committer:alice"
=> the result is all commits committed by Alice AND has the keyword
'hello' in the message.

Note that there should NOT have any space after the colon(:) of the prefix.
For example,
"author:bill" => correct
"author: bill" => wrong

* Remove unneeded logging

* Add missing files of test repository

* Add missing repo_unit entries to test fixtures

* Update test cases

* Add tooltip for commits search button

* Update tooltip text

I have no idea about how to format it with line breaks.

* Make the usage example more real

* Add a test case

* Add new options struct for SearchCommits

* Prefer len(s) > 0 over s != ""

* Add NewSearchCommitsOptions
5 years ago
..
activity.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
attachment.go fix upload attachments (#6481) 5 years ago
branch.go Delete local branch if it exists (#6497) 5 years ago
commit.go Support search operators for commits search (#6479) 5 years ago
download.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
editor.go Better logging (#6038) (#6095) 5 years ago
editor_test.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
http.go Better logging (#6038) (#6095) 5 years ago
issue.go Show last commit status in pull request lists (#6465) 5 years ago
issue_dependency.go Added dependencies for issues (#2196) (#2531) 6 years ago
issue_label.go Allow labels to contain emoji (#6063) 5 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 5 years ago
issue_timetrack.go Handle refactor (#3339) 7 years ago
issue_watch.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
milestone.go Add same changes from issues page to milestone->issues page (#6328) 5 years ago
pull.go Better logging (#6038) (#6095) 5 years ago
pull_review.go Add comment replies (#5104) 6 years ago
release.go Feature: Archive repos (#5009) 6 years ago
release_test.go Fix missing branch in release bug (#3108) 7 years ago
repo.go Better logging (#6038) (#6095) 5 years ago
search.go Global code search support (#3664) 6 years ago
setting.go Allow admin users to set a repositoires visibility to public, even if FORCE_PRIVATE is to true (#6541) (#6572) 5 years ago
setting_protected_branch.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
settings_test.go An inactive user shouldn't be able to be added as a collaborator (#4535) 6 years ago
topic.go Better logging (#6038) (#6095) 5 years ago
view.go Better logging (#6038) (#6095) 5 years ago
webhook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
wiki.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
wiki_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago