-
- Downloads
There was an error fetching the commit references. Please try again later.
Client implementation for InfoAttributes
Clients can now request the attributes from `$GIT_DIR/info/attributes` through Gitaly. The Gitaly migration is described in gitlab-org/gitaly#1082. The parser algorithm was implemented in a way it could handle both file contents or a File handle, and both were already tested. Other than that, using the boy scout rule, I've removed a class, InfoAttributes, as it was delegating everything to the parser and therefor wasn't really needed in my opinion.
Showing
- lib/gitlab/git/attributes_parser.rb 4 additions, 8 deletionslib/gitlab/git/attributes_parser.rb
- lib/gitlab/git/info_attributes.rb 0 additions, 49 deletionslib/gitlab/git/info_attributes.rb
- lib/gitlab/git/repository.rb 22 additions, 2 deletionslib/gitlab/git/repository.rb
- lib/gitlab/gitaly_client/repository_service.rb 9 additions, 0 deletionslib/gitlab/gitaly_client/repository_service.rb
- spec/lib/gitlab/git/attributes_parser_spec.rb 0 additions, 12 deletionsspec/lib/gitlab/git/attributes_parser_spec.rb
- spec/lib/gitlab/git/info_attributes_spec.rb 0 additions, 43 deletionsspec/lib/gitlab/git/info_attributes_spec.rb
- spec/lib/gitlab/gitaly_client/repository_service_spec.rb 11 additions, 0 deletionsspec/lib/gitlab/gitaly_client/repository_service_spec.rb
lib/gitlab/git/info_attributes.rb
deleted
100644 → 0
Please register or sign in to comment