Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3874f2d5
Commit
3874f2d5
authored
Jan 11, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill vestigal dangling-remote code
Fixes #1232
parent
359316b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
24 deletions
+1
-24
include/git2/remote.h
+1
-11
src/remote.c
+0
-13
No files found.
include/git2/remote.h
View file @
3874f2d5
...
...
@@ -60,7 +60,7 @@ GIT_EXTERN(int) git_remote_create(
* See `git_tag_create()` for rules about valid names.
*
* @param out pointer to the new remote object
* @param repo the associated repository
. May be NULL for a "dangling" remote.
* @param repo the associated repository
* @param fetch the fetch refspec to use for this remote. May be NULL for defaults.
* @param url the remote repository's URL
* @return 0 or an error code
...
...
@@ -72,16 +72,6 @@ GIT_EXTERN(int) git_remote_create_inmemory(
const
char
*
url
);
/**
* Sets the owning repository for the remote. This is only allowed on
* dangling remotes.
*
* @param remote the remote to configure
* @param repo the repository that will own the remote
* @return 0 or an error code
*/
GIT_EXTERN
(
int
)
git_remote_set_repository
(
git_remote
*
remote
,
git_repository
*
repo
);
/**
* Get the information for a particular remote
*
* The name will be checked for validity.
...
...
src/remote.c
View file @
3874f2d5
...
...
@@ -195,19 +195,6 @@ int git_remote_create_inmemory(git_remote **out, git_repository *repo, const cha
return
0
;
}
int
git_remote_set_repository
(
git_remote
*
remote
,
git_repository
*
repo
)
{
assert
(
repo
);
if
(
remote
->
repo
)
{
giterr_set
(
GITERR_INVALID
,
"Remotes can't change repositiories."
);
return
GIT_ERROR
;
}
remote
->
repo
=
repo
;
return
0
;
}
int
git_remote_load
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
name
)
{
git_remote
*
remote
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment