mirror of
https://git.proxmox.com/git/libgit2
synced 2026-08-26 18:40:39 +00:00
remotes: change git_remote_new's signature
Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
This commit is contained in:
@@ -38,11 +38,12 @@ GIT_BEGIN_DECL
|
||||
*
|
||||
* @param out pointer to the new remote object
|
||||
* @param repo the associtated repository
|
||||
* @param url the remote repository's URL
|
||||
* @param name the remote's name
|
||||
* @param url the remote repository's URL
|
||||
* @param fetch the fetch refspec to use for this remote
|
||||
* @return GIT_SUCCESS or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *url, const char *name);
|
||||
GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *name, const char *url, const char *fetch);
|
||||
|
||||
/**
|
||||
* Get the information for a particular remote
|
||||
|
||||
Reference in New Issue
Block a user