1. 17 3月, 2016 1 次提交
  2. 09 3月, 2016 5 次提交
  3. 08 3月, 2016 2 次提交
  4. 02 3月, 2016 1 次提交
  5. 25 2月, 2016 1 次提交
  6. 21 2月, 2016 1 次提交
    • Y
      Flush emptiness caches whenever needed · e0cb3212
      Yorick Peterse 提交于
      This ensures that the emptiness cache (used for Repository#empty? and
      Repository#has_visible_content?) is flushed after comitting changes
      (using the web editor, API or Git) for new repositories. Once a
      repository is no longer empty there's no need to explicitly flush the
      cache for Repository#empty?. The cache for
      Repository#has_visible_content? in turn is already flushed whenever
      needed.
      
      Fixes gitlab-org/gitlab-ce#13387
      e0cb3212
  7. 20 2月, 2016 3 次提交
  8. 18 2月, 2016 3 次提交
    • Y
      Handle raw_repository returning nil in exists? · 5b6d347f
      Yorick Peterse 提交于
      If path_with_namespace is nil Repository#raw_repository will also return
      nil. Apparently code out there creates a Repository instance without a
      namespace path. Right.
      5b6d347f
    • Y
      Added specs for Repository#exists? · 8a7aad77
      Yorick Peterse 提交于
      8a7aad77
    • Y
      Only set autocrlf when creating/updating files · c475b171
      Yorick Peterse 提交于
      Setting the "autocrlf" Git option is an overkill since it's rarely
      actually needed. More importantly, it has quite the impact on
      performance (see gitlab-org/gitlab-ce#13457 for more information).
      
      By setting "autocrlf" when creating or updating files we guarantee the
      option is always set properly when we actually need it _without_
      introducing overhead for requests that have nothing to do with this
      option.
      
      Fixes gitlab-org/gitlab-ce#13457
      c475b171
  9. 17 2月, 2016 1 次提交
  10. 10 2月, 2016 1 次提交
    • Y
      Smarter flushing of branch statistics caches · 2ce0d063
      Yorick Peterse 提交于
      Instead of flushing the behind/ahead counts for all branches upon every
      push we now only flush the cache of branches that actually need to have
      these statistics recalculated. There are now basically 2 scenarios and
      their effects:
      
      1. A user pushes a commit to the default branch, this results in the
         cache being flushed for all branches.
      2. A user pushes to a non default branch, this results in _only_ the
         cache for that branch being flushed.
      
      The existing code (Repository#expire_cache) remains backwards compatible
      with the previous behaviour, the new behaviour is only applied when a
      branch name is passed as an argument. This ensures that when for example
      a project is deleted the cache for all branches is flushed.
      2ce0d063
  11. 08 2月, 2016 2 次提交
    • Y
      Cache various Repository Git operations · 9a99d8e4
      Yorick Peterse 提交于
      This caches the output of the following methods:
      
      * Repository#empty?
      * Repository#has_visible_content?
      * Repository#root_ref
      
      The cache for Repository#has_visible_content? is flushed whenever a
      commit is pushed to a new branch or an existing branch is removed.
      The cache for Repository#root_ref is only flushed whenever a user
      changes the default branch of a project. The cache for Repository#empty?
      is never explicitly flushed as there's no need for it.
      9a99d8e4
    • T
      b62cdc3c
  12. 22 1月, 2016 1 次提交
  13. 10 12月, 2015 1 次提交
  14. 09 12月, 2015 1 次提交
  15. 03 12月, 2015 2 次提交
  16. 02 11月, 2015 1 次提交
  17. 29 10月, 2015 6 次提交
  18. 16 10月, 2015 1 次提交
  19. 12 8月, 2015 1 次提交
  20. 11 8月, 2015 3 次提交
  21. 16 7月, 2015 1 次提交
  22. 12 7月, 2015 1 次提交