diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2017-07-31 00:58:58 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2017-07-31 00:59:27 +0100 |
| commit | fb585d01205e1a0b580a39f9cbdc829ff63e02c9 (patch) | |
| tree | 33f6f11be8a18afdd6ce3594e184dce9625638ea /include | |
| parent | d55431ebfaf3958ca2030ac73a3caff9c8507b4c (diff) | |
| parent | 868ce84f9ed21f8881b3c66b2363b29b219a99ab (diff) | |
| download | libgit2-fb585d01205e1a0b580a39f9cbdc829ff63e02c9.tar.gz | |
Merge branch '4233'
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/remote.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index e9e4e5b65..b1e04d557 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -76,6 +76,24 @@ GIT_EXTERN(int) git_remote_create_anonymous( const char *url); /** + * Create a remote without a connected local repo + * + * Create a remote with the given url in-memory. You can use this when + * you have a URL instead of a remote's name. + * + * Contrasted with git_remote_create_anonymous, a detached remote + * will not consider any repo configuration values (such as insteadof url + * substitutions). + * + * @param out pointer to the new remote objects + * @param url the remote repository's URL + * @return 0 or an error code + */ +GIT_EXTERN(int) git_remote_create_detached( + git_remote **out, + const char *url); + +/** * Get the information for a particular remote * * The name will be checked for validity. |
