You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
6.1 KiB

Improve listing performance by using go-git (#6478) * Use go-git for tree reading and commit info lookup. Signed-off-by: Filip Navara <navara@emclient.com> * Use TreeEntry.IsRegular() instead of ObjectType that was removed. Signed-off-by: Filip Navara <navara@emclient.com> * Use the treePath to optimize commit info search. Signed-off-by: Filip Navara <navara@emclient.com> * Extract the latest commit at treePath along with the other commits. Signed-off-by: Filip Navara <navara@emclient.com> * Fix listing commit info for a directory that was created in one commit and never modified after. Signed-off-by: Filip Navara <navara@emclient.com> * Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit). Signed-off-by: Filip Navara <navara@emclient.com> * Use go-git for reading blobs. Signed-off-by: Filip Navara <navara@emclient.com> * Make SHA1 type alias for plumbing.Hash in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Make Signature type alias for object.Signature in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Fix GetCommitsInfo for repository with only one commit. Signed-off-by: Filip Navara <navara@emclient.com> * Fix PGP signature verification. Signed-off-by: Filip Navara <navara@emclient.com> * Fix issues with walking commit graph across merges. Signed-off-by: Filip Navara <navara@emclient.com> * Fix typo in condition. Signed-off-by: Filip Navara <navara@emclient.com> * Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes). Signed-off-by: Filip Navara <navara@emclient.com> * Fix lising submodules. Signed-off-by: Filip Navara <navara@emclient.com> * Fix build Signed-off-by: Filip Navara <navara@emclient.com> * Add back commit cache because of name-rev Signed-off-by: Filip Navara <navara@emclient.com> * Fix tests Signed-off-by: Filip Navara <navara@emclient.com> * Fix code style * Fix spelling * Address PR feedback Signed-off-by: Filip Navara <navara@emclient.com> * Update vendor module list Signed-off-by: Filip Navara <navara@emclient.com> * Fix getting trees by commit id Signed-off-by: Filip Navara <navara@emclient.com> * Fix remaining unit test failures * Fix GetTreeBySHA * Avoid running `git name-rev` if not necessary Signed-off-by: Filip Navara <navara@emclient.com> * Move Branch code to git module * Clean up GPG signature verification and fix it for tagged commits * Address PR feedback (import formatting, copyright headers) * Make blob lookup by SHA working * Update tests to use public API * Allow getting content from any type of object through the blob interface * Change test to actually expect the object content that is in the GIT repository * Change one more test to actually expect the object content that is in the GIT repository * Add comments
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
  1. module code.gitea.io/gitea
  2. go 1.13
  3. require (
  4. cloud.google.com/go v0.45.0 // indirect
  5. gitea.com/macaron/binding v0.0.0-20190822013154-a5f53841ed2b
  6. gitea.com/macaron/cache v0.0.0-20190822004001-a6e7fee4ee76
  7. gitea.com/macaron/captcha v0.0.0-20190822015246-daa973478bae
  8. gitea.com/macaron/cors v0.0.0-20190821152825-7dcef4a17175
  9. gitea.com/macaron/csrf v0.0.0-20190822024205-3dc5a4474439
  10. gitea.com/macaron/gzip v0.0.0-20191118033930-0c4c5566a0e5
  11. gitea.com/macaron/i18n v0.0.0-20190822004228-474e714e2223
  12. gitea.com/macaron/inject v0.0.0-20190805023432-d4c86e31027a
  13. gitea.com/macaron/macaron v1.3.3-0.20190821202302-9646c0587edb
  14. gitea.com/macaron/session v0.0.0-20190821211443-122c47c5f705
  15. gitea.com/macaron/toolbox v0.0.0-20190822013122-05ff0fc766b7
  16. github.com/PuerkitoBio/goquery v1.5.0
  17. github.com/RoaringBitmap/roaring v0.4.7 // indirect
  18. github.com/bgentry/speakeasy v0.1.0 // indirect
  19. github.com/blevesearch/bleve v0.0.0-20190214220507-05d86ea8f6e3
  20. github.com/blevesearch/blevex v0.0.0-20180227211930-4b158bb555a3 // indirect
  21. github.com/blevesearch/go-porterstemmer v0.0.0-20141230013033-23a2c8e5cf1f // indirect
  22. github.com/blevesearch/segment v0.0.0-20160105220820-db70c57796cc // indirect
  23. github.com/boombuler/barcode v0.0.0-20161226211916-fe0f26ff6d26 // indirect
  24. github.com/couchbase/vellum v0.0.0-20190111184608-e91b68ff3efe // indirect
  25. github.com/cznic/b v0.0.0-20181122101859-a26611c4d92d // indirect
  26. github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
  27. github.com/cznic/strutil v0.0.0-20181122101858-275e90344537 // indirect
  28. github.com/denisenkom/go-mssqldb v0.0.0-20190924004331-208c0a498538
  29. github.com/dgrijalva/jwt-go v3.2.0+incompatible
  30. github.com/editorconfig/editorconfig-core-go/v2 v2.1.1
  31. github.com/emirpasic/gods v1.12.0
  32. github.com/etcd-io/bbolt v1.3.2 // indirect
  33. github.com/ethantkoenig/rupture v0.0.0-20180203182544-0a76f03a811a
  34. github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51 // indirect
  35. github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
  36. github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870 // indirect
  37. github.com/gliderlabs/ssh v0.2.2
  38. github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd // indirect
  39. github.com/glycerine/goconvey v0.0.0-20190315024820-982ee783a72e // indirect
  40. github.com/go-openapi/jsonreference v0.19.3 // indirect
  41. github.com/go-openapi/runtime v0.19.5 // indirect
  42. github.com/go-redis/redis v6.15.2+incompatible
  43. github.com/go-sql-driver/mysql v1.4.1
  44. github.com/go-swagger/go-swagger v0.20.1
  45. github.com/gobwas/glob v0.2.3
  46. github.com/gogits/chardet v0.0.0-20150115103509-2404f7772561
  47. github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14
  48. github.com/google/go-github/v24 v24.0.1
  49. github.com/gorilla/context v1.1.1
  50. github.com/issue9/assert v1.3.2 // indirect
  51. github.com/issue9/identicon v0.0.0-20160320065130-d36b54562f4c
  52. github.com/jaytaylor/html2text v0.0.0-20160923191438-8fb95d837f7d
  53. github.com/jmhodges/levigo v1.0.0 // indirect
  54. github.com/joho/godotenv v1.3.0 // indirect
  55. github.com/kballard/go-shellquote v0.0.0-20170619183022-cd60e84ee657
  56. github.com/keybase/go-crypto v0.0.0-20170605145657-00ac4db533f6
  57. github.com/klauspost/compress v1.9.2
  58. github.com/lafriks/xormstore v1.3.2
  59. github.com/lib/pq v1.2.0
  60. github.com/lunny/dingtalk_webhook v0.0.0-20171025031554-e3534c89ef96
  61. github.com/lunny/levelqueue v0.0.0-20190217115915-02b525a4418e
  62. github.com/mailru/easyjson v0.7.0 // indirect
  63. github.com/markbates/goth v1.56.0
  64. github.com/mattn/go-isatty v0.0.7
  65. github.com/mattn/go-oci8 v0.0.0-20190320171441-14ba190cf52d // indirect
  66. github.com/mattn/go-sqlite3 v1.11.0
  67. github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75
  68. github.com/microcosm-cc/bluemonday v0.0.0-20161012083705-f77f16ffc87a
  69. github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae // indirect
  70. github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc
  71. github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5
  72. github.com/niklasfasching/go-org v0.1.8
  73. github.com/oliamb/cutter v0.2.2
  74. github.com/philhofer/fwd v1.0.0 // indirect
  75. github.com/pkg/errors v0.8.1
  76. github.com/pquerna/otp v0.0.0-20160912161815-54653902c20e
  77. github.com/prometheus/client_golang v1.1.0
  78. github.com/prometheus/procfs v0.0.4 // indirect
  79. github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001 // indirect
  80. github.com/russross/blackfriday/v2 v2.0.1
  81. github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
  82. github.com/satori/go.uuid v1.2.0
  83. github.com/sergi/go-diff v1.0.0
  84. github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b // indirect
  85. github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
  86. github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd
  87. github.com/steveyen/gtreap v0.0.0-20150807155958-0abe01ef9be2 // indirect
  88. github.com/stretchr/testify v1.4.0
  89. github.com/tecbot/gorocksdb v0.0.0-20181010114359-8752a9433481 // indirect
  90. github.com/tinylib/msgp v0.0.0-20180516164116-c8cf64dff200 // indirect
  91. github.com/tstranex/u2f v1.0.0
  92. github.com/unknwon/cae v0.0.0-20190822084630-55a0b64484a1
  93. github.com/unknwon/com v0.0.0-20190804042917-757f69c95f3e
  94. github.com/unknwon/i18n v0.0.0-20190805065654-5c6446a380b6
  95. github.com/unknwon/paginater v0.0.0-20151104151617-7748a72e0141
  96. github.com/urfave/cli v1.20.0
  97. github.com/willf/bitset v0.0.0-20180426185212-8ce1146b8621 // indirect
  98. github.com/yohcop/openid-go v0.0.0-20160914080427-2c050d2dae53
  99. golang.org/x/crypto v0.0.0-20191117063200-497ca9f6d64f
  100. golang.org/x/net v0.0.0-20191101175033-0deb6923b6d9
  101. golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
  102. golang.org/x/sys v0.0.0-20190910064555-bbd175535a8b
  103. golang.org/x/text v0.3.2
  104. golang.org/x/tools v0.0.0-20190910221609-7f5965fd7709 // indirect
  105. gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
  106. gopkg.in/asn1-ber.v1 v1.0.0-20150924051756-4e86f4367175 // indirect
  107. gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
  108. gopkg.in/ini.v1 v1.48.0
  109. gopkg.in/ldap.v3 v3.0.2
  110. gopkg.in/src-d/go-billy.v4 v4.3.2
  111. gopkg.in/src-d/go-git.v4 v4.13.1
  112. gopkg.in/testfixtures.v2 v2.5.0
  113. mvdan.cc/xurls/v2 v2.1.0
  114. strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251
  115. xorm.io/builder v0.3.6
  116. xorm.io/core v0.7.2
  117. xorm.io/xorm v0.8.0
  118. )