Mura Li
2a9806bfc6
Pre-calculate the absolute path of git ( #6575 )
...
* Pre-caculate the absolute path of git
* Do not repeat string literals which has been defined somewhere
Also make it flexible to accept customized/user-defined value.
6 years ago
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
6 years ago
zeripath
89cc7c646d
Prevent server 500 on compare branches with no common history ( #6555 )
...
* Prevent 500 if there is no common mergebase
* Prevent creation of PR with no history
6 years ago
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ( #6364 )
...
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
6 years ago
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
9 years ago
Adam Strzelecki
3df5dcc1dc
Allow pre-receive hook customization
...
This hook can be used for example to reject too large commits and it is
executed before "update" hook, used exclusively by Gogs to update its state.
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
9 years ago
Unknwon
56c66ee486
#2008 more supported git hooks
9 years ago
Unknwon
987dcc5372
fix #1383
9 years ago
Unknwon
902b578465
better escape char handle
9 years ago
Unknwon
3d14e73fd8
fix #1119 and data race in timming tasks
9 years ago
Unknwon
2c653141a8
#1742 Update default branch in git repository while change in web view
9 years ago
Arthur Ouyang
fc56f42dc3
Use refStr[len("refs/heads/"):] instead of refStr[11:] and fix error
...
Fix #1965
9 years ago
Arthur Ouyang
0bd4d15e47
Use refStr[11:] instead of TrimPrefix
...
Fix #1965
9 years ago
Arthur Ouyang
e04c97b9fa
Fix #1965 - the hyperlink and the display name of the branch
...
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
9 years ago
Unknwon
e06558e208
#1922 Pull request fail to merge with BIN
9 years ago
Unknwon
3a81fdf092
rename fields
9 years ago
Unknwon
25ec20d525
#1838 update merge base before generate new patch
9 years ago
Matthias Pioch
8b92f9cca6
fix workaround for reverse proxy, ssh, submodule
9 years ago
Matthias Pioch
78a4e71245
workaround for reverse proxy, ssh, submodule
9 years ago
Unknwon
c6ce6bd4c2
work on #1830
9 years ago
Unknwon
6a6e43f964
print out git version
9 years ago
Unknwon
215920772a
save PR info as patch and minor fix on PR
9 years ago
Unknwon
953bb06857
basic PR feature
9 years ago
Unknwon
37e0cee877
finish PR UI
9 years ago
Unknwon
8c046073a8
work on PR conversation
9 years ago
Unknwon
125d314465
more clear error
9 years ago
Unknwon
1cb03135b7
new repo git hooks UI
9 years ago
Unknwon
aa65761d81
new commits table
9 years ago
Unknwon
ac616c07de
fix #966
9 years ago
Unknwon
7372042441
list view: issue, label, milestone
9 years ago
Unknwon
6f8e388b55
fix #1169
...
- prevent create reop on existed path
9 years ago
Filippo Valsorda
5d5d774e03
Handle submodules without a .gitmodules entry - fix #1023
10 years ago
Unknwon
5e763baa12
modules/git/signature.go: parse date foramt #663
10 years ago
Unknwon
9dfa17faf2
modules/git: able to parse RFC1123Z date format #663
10 years ago
Unknwon
3005c4f6db
Fix diff css style, hooks \r char
10 years ago
Unknwon
64c68220d2
Fix #264
10 years ago
Linquize
67c44b7d27
If git >= 2.0, sort tags in descending order by version number
10 years ago
Unknwon
2a031c1365
Fix #515
10 years ago
Unknwon
ebb05475ed
Fix #495 and cannot view repository by tag
10 years ago
Unknwon
3f707b3f32
Add basic submodule support
10 years ago
lunnyxiao
7df60af60e
submodule support and closed #478
10 years ago
lunnyxiao
150eef93b2
add submodule basic support & buf fixed #478
10 years ago
Unknwon
ae3639868e
Quick fix on #476
10 years ago
Unknwon
62f21ff3ed
Work on #476
10 years ago
Unknwon
0d9c41be7d
Work on #476
10 years ago
Unknwon
9a1d5d2489
Finish new web hook pages
10 years ago
Unknwon
5c4bc3c848
Huge updates!!!!! Be careful to merge!!!!
10 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
10 years ago