Git-Libgit2

 view release on metacpan or  search on metacpan

lib/Git/Libgit2/FFI.pm  view on Meta::CPAN

Return the URL of the remote.

=head2 git_remote_name

    my $name = Git::Libgit2::FFI::git_remote_name($remote);

Return the name of the remote.

=head2 git_remote_init_callbacks

    Git::Libgit2::FFI::git_remote_init_callbacks($callbacks_ptr, $version);

Initialize callbacks struct for remote operations.

=head2 git_remote_fetch

    Git::Libgit2::FFI::git_remote_fetch($remote, $refspecs, $options, $reflog_msg);

Fetch using the remote. See also C<git_fetch_options_init>.

=head2 git_remote_push

    Git::Libgit2::FFI::git_remote_push($remote, $refspecs, $options);

Push using the remote. See also C<git_push_options_init>.

=head2 git_remote_connect

    Git::Libgit2::FFI::git_remote_connect($remote, $direction, $callbacks, $options, $resolved_url);

Connect to the remote.

=head2 git_remote_ls

    Git::Libgit2::FFI::git_remote_ls(\my $heads, \my $len, $remote);

List remote branches. C<$heads> is an array of OID pointers.

=head2 git_remote_disconnect

    Git::Libgit2::FFI::git_remote_disconnect($remote);

Disconnect from the remote.

=head2 git_remote_free

    Git::Libgit2::FFI::git_remote_free($remote);

Free the remote handle.

=head2 Credentials

=head2 git_credential_userpass_plaintext_new

    Git::Libgit2::FFI::git_credential_userpass_plaintext_new(\my $cred, $username, $password);

Create a username/password credential.

=head2 git_credential_ssh_key_new

    Git::Libgit2::FFI::git_credential_ssh_key_new(\my $cred, $username, $public_key, $private_key, $passphrase);

Create an SSH key credential.

=head2 git_credential_ssh_key_from_agent

    Git::Libgit2::FFI::git_credential_ssh_key_from_agent(\my $cred, $username);

Create an SSH key credential using the ssh-agent.

=head2 git_credential_default_new

    Git::Libgit2::FFI::git_credential_default_new(\my $cred);

Create a default credential (e.g. from GIT_ASKPASS).

=head2 git_credential_username_new

    Git::Libgit2::FFI::git_credential_username_new(\my $cred, $username);

Create a username-only credential.

=head2 git_credential_free

    Git::Libgit2::FFI::git_credential_free($cred);

Free the credential handle.

=head2 Clone

=head2 git_clone_options_init

    Git::Libgit2::FFI::git_clone_options_init($opts_ptr, $version);

Initialize clone options struct.

=head2 git_clone

    Git::Libgit2::FFI::git_clone(\my $repo, $url, $path, $opts);

Clone a repository. Free the repo with C<git_repository_free>.

=head2 Strarray

=head2 git_strarray_free

    Git::Libgit2::FFI::git_strarray_free($strarray);

Free a strarray (used by tag list, branch list iteration, etc.).

=head2 Revwalk

=head2 git_revwalk_new

    Git::Libgit2::FFI::git_revwalk_new(\my $walk, $repo);

Create a revision walker. Free with C<git_revwalk_free>.

=head2 git_revwalk_push

    Git::Libgit2::FFI::git_revwalk_push($walk, $oid_ptr);



( run in 0.656 second using v1.01-cache-2.11-cpan-13bb782fe5a )