summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix some random size_t vs. int conversion warningsSebastian Schuberth2011-09-081-1/+1
|
* Add git_remote_newCarlos Martín Nieto2011-08-301-0/+12
| | | | | | | As we no longer expose the transport functions, this is now the only way to connect to a remote when given an URL instead of a remote name Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Don't hide the transport detailsCarlos Martín Nieto2011-08-301-8/+0
| | | | | | | Transports shouldn't get used outside of the library, so don't expose accessor functions. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Be smarter about selecting wantsCarlos Martín Nieto2011-08-181-2/+1
| | | | | | | There is no need to inspect what the local repository is like. Only check whether the objects exist locally. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Remove enum git_whnCarlos Martín Nieto2011-08-181-8/+2
| | | | | | Instead, use flags inside the git_remote_head structure. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add git_remote_update_tipsCarlos Martín Nieto2011-08-181-0/+10
| | | | | | | This function updates the references in the local reference storage to match the ones in the remote. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Only wait for pack if we need itCarlos Martín Nieto2011-08-181-0/+14
| | | | | | | Provide the git_remote_download function to instruct the library to downlad the packfile and let the user know the temporary location. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Don't expose the fetch code to the userCarlos Martín Nieto2011-08-181-1/+12
| | | | | | | | Move the generation of the want-list to be done from the negotiate function, and keep the filtered references inside the remote structure. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* negotiationCarlos Martín Nieto2011-08-181-0/+2
|
* Add git_fetch_list_want which creates the "want" listCarlos Martín Nieto2011-08-181-0/+7
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* reflog: assimilate reflog API to return git_oid'sschu2011-08-151-2/+2
| | | | | | | Rather than returning the OIDs out of the reflog as string return them as git_oid. Signed-off-by: schu <schu-github@schulog.org>
* Add missing GIT_BEGIN_DECL and GIT_END_DECL to indexer headerLambert CLARA2011-08-131-0/+3
|
* commit: Add support for Encoding headerVicent Marti2011-08-121-3/+14
|
* Add common.h to types.hVicent Marti2011-08-101-0/+2
|
* Merge pull request #345 from carlosmn/gsoc2011/indexerVicent Martí2011-08-031-0/+67
|\ | | | | Implement a pack indexer
| * Document the indexer callsCarlos Martín Nieto2011-08-031-1/+46
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Move pack index writing to a public functionCarlos Martín Nieto2011-08-031-0/+1
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Implement the indexerCarlos Martín Nieto2011-08-031-1/+3
| | | | | | | | | | | | Only v2 index files are supported. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Rename stuff to git_indexer_Carlos Martín Nieto2011-08-021-5/+5
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Start the runnerCarlos Martín Nieto2011-08-021-7/+11
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Intial indexer codeCarlos Martín Nieto2011-08-021-0/+15
| |
* | signature: adjust API to return error codesschu2011-08-031-4/+6
|/ | | | | | | | git_signature_new() and git_signature_now() currently don't return error codes. Change the API to return error codes and not pointers to let the user handle errors properly. Signed-off-by: schu <schu-github@schulog.org>
* Fix compilation in C++: remove double GIT_BEGIN_DECLMarcel Groothuis2011-07-291-9/+0
|
* Fixup network headersCarlos Martín Nieto2011-07-272-10/+18
| | | | | | The network headers were still missing some formalities. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* On some header files, GIT_END_DECL was absent while GIT_BEGIN_DECL wasn't.Johan 't Hart2011-07-272-0/+5
|
* index: fix cast warningsKirill A. Shutemov2011-07-251-2/+2
| | | | | | | | | | | | | | | /home/kas/git/public/libgit2/src/index.c: In function ‘git_index_clear’: /home/kas/git/public/libgit2/src/index.c:228:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c:235:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘index_insert’: /home/kas/git/public/libgit2/src/index.c:392:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c:399:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘read_unmerged’: /home/kas/git/public/libgit2/src/index.c:681:35: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘read_entry’: /home/kas/git/public/libgit2/src/index.c:716:33: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* Modify struct definition to enable forward declare with C++ compiler,Lambert CLARA2011-07-251-2/+3
| | | | thus avoid including C library's header in C++ header.
* tag: Make git_tag_create_lightweight() accessible to bindingsnulltoken2011-07-141-1/+1
|
* typo: one git_remote_fetchspec should be pushspecCarlos Martín Nieto2011-07-131-1/+1
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* config: Rename `del` to `deleteVicent Marti2011-07-121-1/+1
|
* tag: Add creation of lightweight tagnulltoken2011-07-111-3/+37
|
* Finish to hide git_pkt from external API.Lambert CLARA2011-07-111-6/+0
|
* Remove the last reference of git_net_direction enumLambert CLARA2011-07-111-3/+0
|
* Cleanup external APIVicent Marti2011-07-114-58/+104
| | | | | Some of the WIP API calls have been hidden in preparation for the next minor release.
* include: Fix unmatched params in documentationVicent Marti2011-07-112-4/+4
|
* status: CleanupVicent Marti2011-07-092-12/+13
| | | | | | | | The `hashfile` function has been moved to ODB, next to `git_odb_hash`. Global state has been removed from the dirent call in `status.c`, because global state is killing the rainforest and causing global warming.
* status: get status for single fileJason Penny2011-07-091-0/+10
| | | | | Add git_status_file to be able to retrieve status of single file by supplying a path.
* status: get file statuses and run callbackJason Penny2011-07-091-0/+27
| | | | | Add git_status_foreach() to run a callback on each file passing the path and a status value.
* status: get blob object id of file on diskJason Penny2011-07-091-0/+54
| | | | | | Add git_status_hashfile() to get blob's object id for a file without adding it to the object database or needing a repository at all. This functionality is similar to `git hash-object` without '-w'.
* reflog: add API to read or write a reference logschu2011-07-092-0/+135
| | | | | | | | | | | So far libgit2 didn't support reference logs (reflog). Add a new git_reflog_* API for basic reading and writing of reflogs: * git_reflog_read * git_reflog_write * git_reflog_free Signed-off-by: schu <schu-github@schulog.org>
* tag: add pattern based retrieval of list of tag namesnulltoken2011-07-071-0/+23
|
* index: introduce git_index_uniq() functionKirill A. Shutemov2011-07-051-0/+7
| | | | | | | | | It removes all entries with equal path except last added. On large indexes git_index_append() + git_index_uniq() before writing is *much* faster, than git_index_add(). Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* Merge pull request #300 from carlosmn/gsoc2011/masterVicent Martí2011-07-058-0/+312
|\ | | | | A bit of networking
| * Slim down git_transportCarlos Martín Nieto2011-06-273-6/+4
| | | | | | | | | | | | | | | | Remove the unused repo and private pointers and make the direction a flag, as it can only have two states. Change the connect signature to use an int instead of git_net_direction and remove that enum. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add git_remote_connect and git_remote_lsCarlos Martín Nieto2011-06-271-0/+21
| | | | | | | | | | | | | | These allow you to implement git-ls-remote when given a reference name and a repository. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Remove the repo param from git_transport_newCarlos Martín Nieto2011-06-261-1/+1
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Move transports to an inheritance modelCarlos Martín Nieto2011-06-262-1/+2
| | | | | | | | | | | | | | | | | | Rather than an 'private' pointer, make the private structures inherit from the generic git_transport struct. This way, we only have to worry about one memory allocation instead of two. The structures are so simple that this may even make the code use less memory overall. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Move git_pkt_{gen_proto,send_request} to transport_git.cCarlos Martín Nieto2011-06-261-5/+0
| | | | | | | | | | | | | | This is where they really belong. Remvoe the prefix and make them static. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Use (s)size_tCarlos Martín Nieto2011-06-261-1/+1
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Implement and use git_pkt_send_requestCarlos Martín Nieto2011-06-261-1/+2
| | | | | | | | | | | | | | | | | | | | This makes it easier to send a requqest for an URL. It assumes there is a socket where the string should go out to. Make git_pkt_gen_proto accept a command parameter, which defaults to git-upload-pack Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>