Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate use of cat with LibGit2 objects #21171

Merged
merged 2 commits into from
Mar 28, 2017
Merged

deprecate use of cat with LibGit2 objects #21171

merged 2 commits into from
Mar 28, 2017

Conversation

simonbyrne
Copy link
Contributor

No description provided.

@simonbyrne
Copy link
Contributor Author

This should also mean that JuliaLang/PkgDev.jl#101 will just throw a depwarn rather than an error.

rethrow(e)
end
end
Base.cat(repo::GitRepo, object::AbstractString) = cat(repo, GitBlob, object)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about object::AbstractGitHash ?

@simonbyrne simonbyrne added the libgit2 The libgit2 library or the LibGit2 stdlib module label Mar 27, 2017
Copy link
Contributor

@tkelman tkelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not ideal to be adding deprecations after feature freeze, but this does at least make the behavior more compatible with what it was before - just giving a warning now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants