Skip to content
Snippets Groups Projects
Commit f1626e27 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'deprecate' into 'master'

Deprecate the gitlab_git gem

See merge request !134
parents 8ed324ec 022ead4d
No related branches found
No related tags found
1 merge request!134Deprecate the gitlab_git gem
Pipeline #
# GitLab Git
 
## `Gitlab::Git` has been absorbed into the [main GitLab project](https://gitlab-com/gitlab-org/gitlab-ce), and the `gitlab_git` gem has been deprecated. See the [gitlab-ce issue](https://gitlab.com/gitlab-org/gitlab-ce/issues/24374) and [merge request](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8447) for more information.
GitLab wrapper around git objects.
 
[![build status](https://gitlab.com/gitlab-org/gitlab_git/badges/master/build.svg)](https://gitlab.com/gitlab-org/gitlab_git/commits/master)
Loading
Loading
@@ -40,7 +42,7 @@ GitLab Git used grit as main library in past. Now it uses rugged
# Search for code
repo.search_files('rspec', 'master')
# [ <Gitlab::Git::BlobSnippet:0x000..>, <Gitlab::Git::BlobSnippet:0x000..>]
# Access to rugged repo object
repo.rugged
 
Loading
Loading
@@ -127,7 +129,7 @@ In case it's needed to update https://gitlab.com/gitlab-org/gitlab-git-test with
}
}
 
# Create or update file in repository.
# Create or update file in repository.
# Returns sha of commit that did a change
Gitlab::Git::Blob.commit(repository, commit_options)
 
Loading
Loading
@@ -204,7 +206,7 @@ In case it's needed to update https://gitlab.com/gitlab-org/gitlab-git-test with
 
# Diff object
diff = commit.diffs.first
diff.diff # "--- a/Gemfile.lock\....."
diff.new_path # => "Gemfile.lock",
diff.old_path # => "Gemfile.lock",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment