| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| |
| |
| | |
Add git_pkt_gen_proto to crete a request from an url.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Add support for parsing other-ref lines.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
| |
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |
| |
| |
| | |
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
|
| | |
|
| |
| |
| |
| | |
accessible to bindings
|
| | |
|
| |
| |
| |
| | |
`git_reference_rename` now takes a `force` flag
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add detached and orphan convenience functions
|
| |/
| |
| |
| | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Allows a custom user backend to passthrough one of the callbacks. Used
for e.g. caching backends.
|
| |
|
|
|
|
| |
Scott commands, I obey.
|
|
|
|
|
| |
Do not mess with environment variables anymore. The new external API has
more helper methods, and everything is explicit.
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Fix all the missmatched arguments in the docs
|
|
|
|
| |
Drop redundant methods. The ncmp method is now public
|
|
|
|
|
| |
Yeah. Finally. Fuck the old names, this ain't POSIX
and they don't make any sense at all.
|
|
|
|
| |
Same name as `git_config_foreach`
|
| |
|
|\
| |
| | |
Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
|
| |
| |
| |
| |
| | |
GIT_PATH_LIST_SEPARATOR and GIT_PATH_MAX are made public so
that it's can be used by a client.
|
| | |
|
| |
| |
| |
| |
| | |
All the custom backend code will be moved to a separate project,
together with the new MySQL backend.
|
|\ \
| | |
| | | |
git_tag_create{,_o,_frombuffer} correction and improvement
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
When a tag already exists, it can be useful to directly have the oid
of the existed tag, just after trying to add it.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | |
| | |
| | |
| | | |
This time for good.
|
| | |
| | |
| | |
| | | |
This commit uploaded an old broken test. Oops!
|
|\ \ \
| | | |
| | | | |
Tree: Added a function that returns the type of a tree entry.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Search objects of different types given OID prefix
|
| |/ / /
| | | |
| | | |
| | | | |
given an OID prefix.
|