summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
Commit message (Collapse)AuthorAgeFilesLines
...
* MERGE_HEAD contents iteratorEdward Thomson2013-01-031-0/+1
|
* fetchhead reading/iteratingEdward Thomson2012-12-191-0/+1
|
* errors: Introduce EINVALIDSPEC error codenulltoken2012-12-011-0/+1
|
* Push! By schu, phkelley, and congyiwu, et alPhilip Kelley2012-11-281-0/+1
|
* Rework checkout with new strategy optionsRussell Belfer2012-11-091-0/+1
| | | | | | | | | | | | | | | | | | This is a major reworking of checkout strategy options. The checkout code is now sensitive to the contents of the HEAD tree and the new options allow you to update the working tree so that it will match the index content only when it previously matched the contents of the HEAD. This allows you to, for example, to distinguish between removing files that are in the HEAD but not in the index, vs just removing all untracked files. Because of various corner cases that arise, etc., this required some additional capabilities in rmdir and other utility functions. This includes the beginnings of an implementation of code to read a partial tree into the index based on a pathspec, but that is not enabled because of the possibility of creating conflicting index entries.
* error: add GITERR_STASH error typenulltoken2012-10-261-0/+1
|
* GIT_EUNMERGEDEdward Thomson2012-10-241-0/+1
|
* errors: introduce GIT_EORPHANEDHEADnulltoken2012-10-191-0/+1
|
* gsoc-pack-objects WIPMichael Schubert2012-10-091-0/+1
|
* Make giterr_set_str publicRussell Belfer2012-09-211-0/+34
| | | | | | | There has been discussion for a while about making some set of the `giterr_set` type functions part of the public API for code that is implementing new backends to libgit2. This makes the `giterr_set_str()` and `giterr_set_oom()` functions public.
* errors: introduce GIT_EBAREREPOnulltoken2012-09-061-0/+1
|
* Diff iteratorsRussell Belfer2012-09-051-1/+1
| | | | | | | | | | | This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
* Major submodule rewriteRussell Belfer2012-08-241-0/+1
| | | | | This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
* Update iterators for consistency across libraryRussell Belfer2012-08-031-0/+1
| | | | | | | | | | | | | | | | | This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
* amigaos: CleanupVicent Marti2012-06-221-39/+1
|
* Fix double-defines when using GIT_OLD_ERRORSChris Young2012-06-071-1/+3
|
* ssl: check certificates against the system's trusted CAsCarlos Martín Nieto2012-05-191-0/+1
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-5/+6
|
* errors: Rename the generic return codesVicent Martí2012-05-181-5/+42
|
* errors: Remove old commentsVicent Martí2012-05-181-13/+0
|
* Introduce GITERR_INDEXERCarlos Martín Nieto2012-05-151-0/+1
|
* Remove old and unused error codesVicent Martí2012-05-021-104/+4
|
* error handling: move the missing parts over to the new error handlingCarlos Martín Nieto2012-04-261-0/+2
|
* error-handling: remote, transportCarlos Martín Nieto2012-04-111-1/+2
|
* error-handling: Commit (WIP)Vicent Martí2012-04-021-1/+2
|
* Migrate index, oid, and utils to new errorsRussell Belfer2012-03-191-1/+3
| | | | | | | | | | | | This includes a few cleanups that came up while converting these files. This commit introduces a could new git error classes, including the catchall class: GITERR_INVALID which I'm using as the class for invalid and out of range values which are detected at too low a level of library to use a higher level classification. For example, an overflow error in parsing an integer or a bad letter in parsing an OID string would generate an error in this class.
* Resolve comments from pull requestRussell Belfer2012-03-131-0/+16
| | | | | | | This converts the map validation function into a macro, tweaks the GITERR_OS system error automatic appending, and adds a tentative new error access API and some quick unit tests for both the old and new error APIs.
* Migrate ODB files to new error handlingRussell Belfer2012-03-121-1/+2
| | | | | | | | | | | | | | This migrates odb.c, odb_loose.c, odb_pack.c and pack.c to the new style of error handling. Also got the unix and win32 versions of map.c. There are some minor changes to other files but no others were completely converted. This also contains an update to filebuf so that a zeroed out filebuf will not think that the fd (== 0) is actually open (and inadvertently call close() on fd 0 if cleaned up). Lastly, this was built and tested on win32 and contains a bunch of fixes for the win32 build which was pretty broken.
* error-handling: On-disk config file backendVicent Martí2012-03-091-6/+1
| | | | | | | | | | | | | | | Includes: - Proper error reporting when encountering syntax errors in a config file (file, line number, column). - Rewritten `config_write`, now with 99% less goto-spaghetti - Error state in `git_filebuf`: filebuf write functions no longer need to be checked for error returns. If any of the writes performed on a buffer fail, the last call to `git_filebuf_commit` or `git_filebuf_hash` will fail accordingly and set the appropiate error message. Baller!
* error-handling: ConfigVicent Martí2012-03-071-0/+1
|
* error-handling: RepositoryVicent Martí2012-03-071-1/+1
| | | | | | | | This also includes droping `git_buf_lasterror` because it makes no sense in the new system. Note that in most of the places were it has been dropped, the code needs cleanup. I.e. GIT_ENOMEM is going away, so instead it should return a generic `-1` and obviously not throw anything.
* error-handling: ReferencesVicent Martí2012-03-061-5/+6
| | | | | Yes, this is error handling solely for `refs.c`, but some of the abstractions leak all ofer the code base.
* refs: Error handling rework. WIPVicent Martí2012-03-031-0/+3
|
* error-handling: Add new routinesVicent Martí2012-03-031-0/+15
| | | | | Obviously all the old throw routines are still in place, so we can gradually port over.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* Tabify everythingVicent Marti2011-09-191-2/+2
| | | | | | There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
* Cleanup legal dataVicent Marti2011-09-191-21/+3
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* Merge pull request #300 from carlosmn/gsoc2011/masterVicent Martí2011-07-051-0/+6
|\ | | | | A bit of networking
| * Correctly handle network inputCarlos Martín Nieto2011-06-261-0/+3
| | | | | | | | | | | | | | | | | | 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.
| * Add git.git's fnmatch, which is really GNU's and the git__fnmatch wrapperCarlos Martín Nieto2011-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | test: Properly show error messagesVicent Marti2011-06-281-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.
* Added error for ambiguous oid prefixes. Added methods to compare the first ↵Marc Pegon2011-06-011-0/+3
| | | | nth hexadecimal characters (i.e. packets of 4 bits) of OIDs.
* Change error codes from DEFINEs to an enumVicent Marti2011-05-151-64/+58
|
* Include "common.h" in "errors.h"Vicent Marti2011-05-131-0/+2
|
* Move all error-related defines to `git2/errors.h`Vicent Marti2011-05-111-0/+92
|
* Bring back `git_strerror`Vicent Marti2011-05-111-0/+12
| | | | | We cannot totally deprecate this until the new error handling mechanisms are all in place.
* errors: Update external API with new `git_lasterror`Vicent Marti2011-05-091-4/+4
|
* Move the external includes folder from `src` to `include`Vicent Marti2011-03-031-0/+45
Signed-off-by: Vicent Marti <tanoku@gmail.com>