summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
Commit message (Collapse)AuthorAgeFilesLines
* 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>