Kasi Reddy
6b819173ed
Improving / Exposing Git-Trees related features for Git-Trees API. ( #123 )
...
* Exposed TreeEntry.mode, changed EntryMode to hex.
* Added reference parsing (HEAD, HEAD~1, etc) for trees
* Added missing description
* Added Tree.ListEntriesRecursive() - utilizes the git ls-tree -r command
2018-11-26 10:36:10 +02:00
Tris Forster
f1ecc138be
Fix for short symlinks ( #115 )
...
Signed-off-by: Tris Forster <tris.git@shoddynet.org >
2018-04-21 09:08:19 +08:00
Tris Forster
288aede62f
Added FollowLink() method to TreeEntry ( #114 )
...
Signed-off-by: Tris Forster <tris.git@shoddynet.org >
2018-04-19 07:22:09 +03:00
Ethan Koenig
02eccf8295
Faster commit lookup ( #91 )
...
* Faster commit lookup
* Fix copy/rename bug
* Comment
* Use defer
2017-12-10 12:02:18 +02:00
Lauris BH
d7487da878
Add method to allow custom sorting of tree entry list ( #81 )
...
* Add method to allow custom sorting of tree entry list
* Add tests for git tree entries sorting
2017-09-16 20:49:37 +03:00
Ethan Koenig
7c4fc4e5ca
Revert to old implementation of GetCommitsInfo ( #73 )
2017-06-28 14:06:37 +08:00
Ethan Koenig
51eca9e922
Check unchecked error ( #69 )
2017-06-20 20:06:07 -05:00
Ethan Koenig
a34a13dea3
Fix Windows path bug in GetCommitInfos ( #67 )
2017-06-19 21:08:21 -05:00
Ethan Koenig
cd5d28eee8
Fix bug in GetCommitInfos ( #66 )
2017-06-19 12:34:00 +08:00
Ethan Koenig
2f740f25eb
Fix escaped char bug in getCommitInfos ( #64 )
2017-06-15 20:12:13 -05:00
Ethan Koenig
a709880af9
Use cross-platform path separator ( #59 )
2017-06-06 01:50:37 -05:00
Ethan Koenig
7b07391b09
Fix bug in GetCommitInfos ( #57 )
2017-06-01 08:33:00 +08:00
Ethan Koenig
ec4446b83c
Faster commit lookup ( #53 )
...
* Add bench task
* Create tree_entry_test.go
* Remove init time
* Add TODO information
* Add linux repo
* Faster implementation of GetCommitsInfo
* Start/stop timer
* Use benchmark/ directory for benchmark repos
2017-05-26 23:08:20 +08:00
Bo-Yi Wu
06b66007b4
fix misspell word. ( #24 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2017-01-06 09:19:55 +08:00
Sl@ny
7880430410
Implementation of Folder Jumping ( #23 )
...
* Implementation of Folder Jumping
2016-12-28 17:08:06 +01:00
Stefan Grönke
d97cb0fe5c
Check if files are a symlink ( #20 )
...
* rename utlis.go to utils.go
* TreeEntry IsLink function
2016-12-22 14:32:27 +08:00
Lunny Xiao
38a5ca6b26
change returned unexported types to exported types
2016-11-16 15:14:36 +08:00
Lunny Xiao
167a0ba929
golint fixed current -min_confidence=0.9
2016-11-13 12:42:56 +08:00
Thibault Meyer
f2ef59b1e5
Can set a custom max number of goroutine
2016-11-12 21:24:07 +01:00
Thibault Meyer
cddfff06fa
Fix variable name collision with import name ( #5 )
2016-11-12 11:50:26 +01:00
Thibault Meyer
a5cddbfb95
Remove "sleep" usage
2016-10-30 08:37:40 +01:00
Unknwon
1dad9765c0
Minor fix for #14
...
- Refactor some name
2016-06-27 23:39:35 +08:00
Unknwon
190831658a
Limit max goroutine number in per method call
2016-02-21 23:04:19 -05:00
Adam Strzelecki
919a66d8bd
Do not fail in GetCommitsInfo with no .gitmodules
...
This fixes GetCommitsInfo returning
GetSubModule (/somemodule): object does not exist [id: , rel_path: .gitmodules]
when /somemodule is a ref entry but no .gitmodules file is present. Instead
failing we just check for IsErrNotExist and return empty submodule url.
This also fixes HTTP 500 internal error in Gogs for case described above.
2016-01-13 18:52:06 +01:00
novaeye
c7a2974ed8
remove commitInfo.id (not need anymore)
2015-12-25 19:22:41 +08:00
novaeye
1de2a32e25
change commitInfo.entry to commitInfo.entryName
2015-12-25 19:00:48 +08:00
novaeye
d18ad23cae
try to fix Duplicate of files in directory (gogs#2254 )
...
https://github.com/gogits/gogs/issues/2254
2015-12-25 18:23:47 +08:00
Unknwon
ebd9fb2253
speed up for getting a lot commits
2015-12-13 22:57:47 -05:00
Unknwon
4cc1cbbfea
complete migration from gogs module
2015-12-09 20:45:25 -05:00
Unknwon
d86a90f801
minor fix
2015-11-27 01:50:46 -05:00
Unknwon
e97767e2eb
migrate some commands
2015-11-27 00:24:02 -05:00