| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
An anonymous remote is not configured and cannot therefore have
configured refspecs. Remove the parameter which adds this from the
constructor.
|
| |
|
|
|
|
| |
This brings it in line with the rest of the lookup functions.
|
|
|
|
|
|
|
|
|
|
| |
The order in this function is the opposite to what
create_with_fetchspec() has, so change this one, as url-then-refspec is
what git does.
As we need to break compilation and the swap doesn't do that, let's take
this opportunity to rename in-memory remotes to anonymous as that's
really what sets them apart.
|
|
|
|
|
|
|
|
|
|
|
| |
The callback-based method of listing remote references dates back to the
beginning of the network code's lifetime, when we didn't know any
better.
We need to keep the list around for update_tips() after disconnect() so
let's make use of this to simply give the user a pointer to the array so
they can write straightforward code instead of having to go through a
callback.
|
|
|
|
|
| |
I'm not too happy about manually inserting < and > but those get
output as html tags otherwise.
|
|
|
|
|
| |
Move this one as well, letting us have a single way of setting the
callbacks for the remote, and removing fields from the clone options.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
git_remote_add -> git_remote_create
git_remote_new -> git_remote_create_inmemory
|
|
|
|
|
| |
Includes typedef for git_direction, and renames for
GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
|
| |
|
| |
|
|
|
|
|
| |
Add a fetch refspec arguemnt and make the arguments (name, url,
refspec), as that order makes more sense.
|
|
|
|
|
|
| |
- Hide the remaining transports code
- Drop `git_headarray`, switch to using a callback to list refs. Makes
the code cleaner.
|
|
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|