summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
Commit message (Collapse)AuthorAgeFilesLines
* remote: remove fetch parameter from create_anonymousCarlos Martín Nieto2015-05-281-1/+1
| | | | | | An anonymous remote is not configured and cannot therefore have configured refspecs. Remove the parameter which adds this from the constructor.
* examples: adjust to the new remote APICarlos Martín Nieto2015-05-131-2/+1
|
* remote: rename _load() to _lookup()cmn/remote-lookupCarlos Martín Nieto2014-11-081-1/+1
| | | | This brings it in line with the rest of the lookup functions.
* remote: rename inmemory to anonymous and swap url and fetch orderCarlos Martín Nieto2014-04-011-1/+1
| | | | | | | | | | 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.
* remote: make _ls return the list directlyCarlos Martín Nieto2013-11-111-12/+14
| | | | | | | | | | | 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.
* A few formatting changes for roccoCarlos Martín Nieto2013-11-011-3/+6
| | | | | I'm not too happy about manually inserting < and > but those get output as html tags otherwise.
* remote: move the credentials callback to the structCarlos Martín Nieto2013-10-021-1/+3
| | | | | 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.
* Adding credentials callback to ls-remote and fetch too.Krzysztof Adamski2013-09-011-0/+1
|
* Removing unneeded code duplication in ls-remote.cKrzysztof Adamski2013-09-011-33/+7
|
* Fix clang warnings and improve checksRussell Belfer2013-04-091-2/+6
|
* Move `url` to last place in parameter listBen Straub2013-01-021-1/+1
|
* Fix examplesBen Straub2012-12-211-1/+1
|
* Rename remote creation APIsBen Straub2012-12-201-1/+1
| | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
* API updates for remote.hBen Straub2012-11-271-2/+2
| | | | | Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
* examples: fix warnings in network/Carlos Martín Nieto2012-07-301-3/+6
|
* errors: Rename the generic return codesVicent Martí2012-05-181-5/+5
|
* remotes: change git_remote_new's signatureCarlos Martín Nieto2012-05-081-1/+1
| | | | | Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
* remote: Cleanup the remotes coderepo-ownershipVicent Marti2011-11-281-37/+9
| | | | | | - Hide the remaining transports code - Drop `git_headarray`, switch to using a callback to list refs. Makes the code cleaner.
* examples: add ls-remote, fetch and index-pack examplesCarlos Martín Nieto2011-10-031-0/+104
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>