| Module | Gitlab::Client::RepositoryFiles |
| In: |
lib/gitlab/client/repository_files.rb
|
Defines methods related to repository files. @see github.com/gitlabhq/gitlabhq/blob/master/doc/api/repository_files.md
Creates a new repository file.
@example
Gitlab.create_file(42, "path", "branch", "content", "commit message")
@param [Integer] project The ID of a project. @param [String] full path to new file. @param [String] the name of the branch. @param [String] file content. @param [String] commit message. @return [Gitlab::ObjectifiedHash]
Edits an existing repository file.
@example
Gitlab.edit_file(42, "path", "branch", "content", "commit message")
@param [Integer] project The ID of a project. @param [String] full path to new file. @param [String] the name of the branch. @param [String] file content. @param [String] commit message. @return [Gitlab::ObjectifiedHash]
Gets a repository file.
@example
Gitlab.get_file(42, "README.md", "master")
@param [Integer] project The ID of a project. @param [String] file_path The full path of the file. @param [String] ref The name of branch, tag or commit. @return [Gitlab::ObjectifiedHash]
Removes an existing repository file.
@example
Gitlab.remove_file(42, "path", "branch", "commit message")
@param [Integer] project The ID of a project. @param [String] full path to new file. @param [String] the name of the branch. @param [String] commit message. @return [Gitlab::ObjectifiedHash]