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

Implement tag and reference overwriting #12

Closed
nulltoken opened this issue Apr 20, 2011 · 1 comment
Closed

Implement tag and reference overwriting #12

nulltoken opened this issue Apr 20, 2011 · 1 comment
Assignees

Comments

@nulltoken
Copy link
Member

Bind libgit2's methods

GIT_EXTERN(int) git_tag_create_f(
        git_oid *oid,
        git_repository *repo,
        const char *tag_name,
        const git_oid *target,
        git_otype target_type,
        const git_signature *tagger,
        const char *message);

GIT_EXTERN(int) git_reference_create_oid_f(git_reference **ref_out, 
                         git_repository *repo, const char *name, const git_oid *id);

GIT_EXTERN(int) git_reference_create_symbolic_f(git_reference **ref_out, 
                        git_repository *repo, const char *name, const char *target);

Change signature of the Create() methods of TagCollection into

public Tag Create(string name, string target, Signature tagger, 
             string message, bool allowOverwrite = false);

public Tag Create(string name, string target, bool allowOverwrite = false);

Change signature of the Create() methods of RefCollection into

public Reference Create(string name, string target, bool allowOverwrite = false);

public Reference Create(string name, ObjectId target, bool allowOverwrite = false);
@ghost ghost assigned nulltoken Apr 29, 2011
@nulltoken
Copy link
Member Author

Fixed by PR21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant