summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
...
| * Correctly handle network inputCarlos Martín Nieto2011-06-262-1/+4
| | | | | | | | | | | | | | | | | | Add a parameter to git_pkt_parse_line to tell it how much data you have in your buffer. If the buffer is too short, it returns an error saying so. Adapt the git transport to use this and fix the offset calculation. Add the GIT_ESHORTBUFFER error code.
| * Implement and use git_pkt_freeCarlos Martín Nieto2011-06-261-0/+1
| | | | | | | | | | | | | | A git_pkt object can be one of several structs. Add this function for convenience and clarity. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Implement the git TCP transport up to ls-remoteCarlos Martín Nieto2011-06-261-0/+1
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add function to generate a requestCarlos Martín Nieto2011-06-262-0/+7
| | | | | | | | | | | | Add git_pkt_gen_proto to crete a request from an url. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * pkt-line: read capabilitiesCarlos Martín Nieto2011-06-261-0/+1
| | | | | | | | | | | | | | Try to read the server capabilities and add them to the git_pkt_ref struct. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * pkt-line: parse other-ref linesCarlos Martín Nieto2011-06-262-3/+3
| | | | | | | | | | | | Add support for parsing other-ref lines. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Lay the foundations for pkt-line parsingCarlos Martín Nieto2011-06-262-0/+57
| | | | | | | | | | | | | | | | This are the types I intend to use for pkt-line parsing and (later) creation. git_pkt serves as a base pointer type and once you know what type it is you can use the real one (command, tip list, etc.) Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Implement ls-remote on local driveCarlos Martín Nieto2011-06-263-5/+8
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Lay down the fundations for the network codeCarlos Martín Nieto2011-06-263-0/+100
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add git_refspec_transformCarlos Martín Nieto2011-06-261-0/+10
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add git.git's fnmatch, which is really GNU's and the git__fnmatch wrapperCarlos Martín Nieto2011-06-262-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | If the strings match, git__fnmatch returns GIT_SUCCESS and GIT_ENOMATCH on failure to match. MSVC fixes: Added a test for _MSC_VER and (in that case) defined HAVE_STRING_H to 1 so it doesn't try to include <strings.h> which doesn't exist in the MSVC world. Moved the function declarations to use the modern inline ones so MSVC doesn't have a fit. Added casts everywhere so MSVC doesn't crap its pants. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add a to-do list for remotesCarlos Martín Nieto2011-06-261-0/+8
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * Add a remotes APICarlos Martín Nieto2011-06-264-0/+92
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Add tests for deleting a config varCarlos Martín Nieto2011-07-051-1/+9
| | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | cleanup: remove trailing spacesKirill A. Shutemov2011-07-017-16/+16
| | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* | config: Fix unmatched parameters in docsVicent Marti2011-06-301-1/+1
| |
* | repository: Make head_detached() and head_orphan() convenience methods ↵nulltoken2011-06-301-2/+2
| | | | | | | | accessible to bindings
* | config: `foreach` now returns variable values tooVicent Marti2011-06-291-7/+10
| |
* | refs: Remove duplicate rename methodVicent Marti2011-06-291-15/+1
| | | | | | | | `git_reference_rename` now takes a `force` flag
* | test: Properly show error messagesVicent Marti2011-06-281-0/+5
| |
* | repo: Rename HEAD-related methodsVicent Marti2011-06-281-2/+2
| |
* | Merge pull request #279 from carlosmn/detached-orphanVicent Martí2011-06-281-0/+24
|\ \ | | | | | | Add detached and orphan convenience functions
| * | Add git_repository_is_detached, git_repository_is_orphanCarlos Martín Nieto2011-06-281-0/+24
| |/ | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | Remove redundant methods from the APIVicent Marti2011-06-284-193/+47
|/ | | | | | | | | | | | | | | A bunch of redundant methods have been removed from the external API. - All the reference/tag creation methods with `_f` are gone. The force flag is now passed as an argument to the normal create methods. - All the different commit creation methods are gone; commit creation now always requires a `git_commit` pointer for parents and a `git_tree` pointer for tree, to ensure that corrupted commits cannot be generated. - All the different tag creation methods are gone; tag creation now always requires a `git_object` pointer to ensure that tags are not created to inexisting objects.
* added defines for Haiku in types.hAnkur Sethi2011-06-231-0/+5
|
* odb: Add GIT_EPASSTHROUGHVicent Marti2011-06-191-0/+3
| | | | | Allows a custom user backend to passthrough one of the callbacks. Used for e.g. caching backends.
* config: Fix API docsVicent Marti2011-06-191-2/+2
|
* config: Bring back `git_config_open_global`Vicent Marti2011-06-181-1/+33
| | | | Scott commands, I obey.
* config: Cleanup external APIVicent Marti2011-06-182-17/+65
| | | | | Do not mess with environment variables anymore. The new external API has more helper methods, and everything is explicit.
* Add git_repository_config APICarlos Martín Nieto2011-06-171-0/+10
| | | | | | | This function puts the global and repository configurations in one git_config object and gives it to the user. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Update documentationVicent Marti2011-06-168-27/+31
| | | | Fix all the missmatched arguments in the docs
* oid: Uniformize ncmp methodsVicent Marti2011-06-161-4/+11
| | | | Drop redundant methods. The ncmp method is now public
* oid: Rename methodsVicent Marti2011-06-161-2/+2
| | | | | Yeah. Finally. Fuck the old names, this ain't POSIX and they don't make any sense at all.
* refs: Rename git_referece_listcb to _foreachVicent Marti2011-06-161-4/+3
| | | | Same name as `git_config_foreach`
* Add method to get the compiled version of the libVicent Marti2011-06-161-0/+10
|
* Merge pull request #261 from Romain-Geissler/discovery-path-v2Vicent Martí2011-06-152-3/+23
|\ | | | | Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
| * Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.Romain Geissler2011-06-152-3/+23
| | | | | | | | | | GIT_PATH_LIST_SEPARATOR and GIT_PATH_MAX are made public so that it's can be used by a client.
* | fix gid_ misspellingScott Chacon2011-06-141-2/+2
| |
* | Remove custom backendsVicent Marti2011-06-141-2/+0
| | | | | | | | | | All the custom backend code will be moved to a separate project, together with the new MySQL backend.
* | Merge pull request #216 from glesserd/developmentVicent Martí2011-06-081-1/+3
|\ \ | | | | | | git_tag_create{,_o,_frombuffer} correction and improvement
| * | Change a dirty indentationDavid Glesser2011-06-041-1/+1
| | |
| * | Set the oid when a tag already exists.David Glesser2011-05-301-1/+3
| | | | | | | | | | | | | | | When a tag already exists, it can be useful to directly have the oid of the existed tag, just after trying to add it.
* | | config: explain the cfg and file relationship betterCarlos Martín Nieto2011-06-071-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | It's not clear how git_config and git_config_file relate to one another. Be more explicit about their relationship in the function documentation. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | config: update the git_config_add_file documentationCarlos Martín Nieto2011-06-071-2/+2
| | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | | threads: Cleanup TLS declarationsVicent Marti2011-06-071-30/+37
| | | | | | | | | | | | This time for good.
* | | Revert "threads: Fix TLS declarations"Vicent Marti2011-06-071-37/+30
| | | | | | | | | | | | This commit uploaded an old broken test. Oops!
* | | Merge pull request #240 from Romain-Geissler/tree-object-typeVicent Martí2011-06-061-0/+8
|\ \ \ | | | | | | | | Tree: Added a function that returns the type of a tree entry.
| * | | Tree: Added a function that returns the type of a tree entry.Romain Geissler2011-06-061-0/+8
| | | |
* | | | Merge pull request #239 from pegonma/oid_prefixVicent Martí2011-06-064-0/+69
|\ \ \ \ | | | | | | | | | | Search objects of different types given OID prefix
| * | | | Added methods to search objects of different typesMarc Pegon2011-06-064-0/+69
| |/ / / | | | | | | | | | | | | given an OID prefix.