summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | local transport: plug leakCarlos Martín Nieto2012-04-121-0/+1
| | |
| * | branch: plug leaks in git_branch_move() and _delete()Carlos Martín Nieto2012-04-121-14/+32
| |/
| * status: Remove status_oldVicent Martí2012-04-111-82/+0
| | | | | | | | This is Git yo. You can fetch stuff from the history if you need it.
| * error-handling local transportCarlos Martín Nieto2012-04-111-80/+66
| |
| * error-handling: fetchCarlos Martín Nieto2012-04-111-44/+39
| |
| * netops: show winsock error messages on WindowsCarlos Martín Nieto2012-04-111-3/+23
| |
| * error-handling: netopsCarlos Martín Nieto2012-04-111-31/+29
| |
| * error-handling: httpCarlos Martín Nieto2012-04-111-165/+120
| |
| * error-handling: git transportCarlos Martín Nieto2012-04-111-134/+127
| |
| * error-handling: protocol, pktCarlos Martín Nieto2012-04-112-76/+60
| |
| * error-handling: remote, transportCarlos Martín Nieto2012-04-112-149/+105
| |
| * Fix compilation errors and warningsnulltoken2012-04-111-9/+4
| |
| * Typedefs don't have enum in frontCarlos Martín Nieto2012-04-113-4/+4
| |
| * Merge pull request #619 from nulltoken/topic/branchesVicent Martí2012-04-117-9/+284
| |\ | | | | | | Basic branch management API
| | * branch: add git_branch_move()nulltoken2012-04-102-0/+27
| | |
| | * fileops: Make git_futils_mkdir_r() able to skip non-empty directoriesnulltoken2012-04-102-7/+33
| | |
| | * Add basic branch management API: git_branch_create(), git_branch_delete(), ↵nulltoken2012-04-102-0/+197
| | | | | | | | | | | | git_branch_list()
| | * transport/local: Fix peeling of nested tagsnulltoken2012-04-101-2/+7
| | |
| | * tag: Add git_tag_peel() which recursively peel a tag until a non tag ↵nulltoken2012-04-101-0/+20
| | | | | | | | | | | | git_object is met
| * | repository: make git_repository_set_workdir() prettify the path it is being ↵nulltoken2012-04-111-3/+6
| | | | | | | | | | | | passed
| * | Merge branch 'new-error-handling' of github.com:libgit2/libgit2 into ↵Vicent Martí2012-04-1122-139/+934
| |\ \ | | | | | | | | | | | | new-error-handling
| | * | Clean up valgrind warningsCarlos Martín Nieto2012-04-044-2/+6
| | |/
| | * reference: Fix creation of references with extended ASCII characters in ↵nulltoken2012-04-011-1/+12
| | | | | | | | | | | | their name
| | * Fix bug when join_n refers to original bufferRussell Belfer2012-03-301-6/+18
| | | | | | | | | | | | | | | | | | There was a bug in git_buf_join_n when the contents of the original buffer were joined into itself and the realloc moved the pointer to the original buffer.
| | * Improve config handling for diff,submodules,attrsRussell Belfer2012-03-3011-125/+211
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for a bunch of core.* settings that affect diff and status, plus fixes up some incorrect implementations of those settings from before. Also, this cleans up the handling of config settings in the new submodules code and in the old attrs/ignore code.
| | * Added submodule API and use in statusRussell Belfer2012-03-288-11/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule.
| | * Fix handling of submodules in treesRussell Belfer2012-03-261-1/+1
| | |
| | * Eliminate hairy COITERATE macroRussell Belfer2012-03-253-38/+53
| | | | | | | | | | | | | | | | | | | | | I decided that the COITERATE macro was, in the end causing more confusion that it would save and decided just to write out the loops that I needed for parallel diff list iteration. It is not that much code and this just feels less obfuscated.
| | * Fix error in tree iterator when popping up treesRussell Belfer2012-03-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was an error in the tree iterator where it would delete two tree levels instead of just one when popping up a tree level. Unfortunately the test data for the tree iterator did not have any deep trees with subtrees in the middle of the tree items, so this problem went unnoticed. This contains the 1-line fix plus new test data and tests that reveal the issue.
| | * Restore default status recursion behaviorRussell Belfer2012-03-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This gives `git_status_foreach()` back its old behavior of emulating the "--untracked=all" behavior of git. You can get any of the various --untracked options by passing flags to `git_status_foreach_ext()` but the basic version will keep the behavior it has always had.
| | * Fix crash in new status and add recurse optionRussell Belfer2012-03-232-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the bug that @nulltoken found (thank you!) where if there were untracked directories alphabetically after the last tracked item, the diff implementation would deref a NULL pointer. The fix involved the code which decides if it is necessary to recurse into a directory in the working dir, so it was easy to add a new option `GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS` to control if the contents of untracked directories should be included in status.
| | * New status fixesRussell Belfer2012-03-224-18/+52
| | | | | | | | | | | | | | | | | | | | | This adds support for roughly-right tracking of submodules (although it does not recurse into submodules to detect internal modifications a la core git), and it adds support for including unmodified files in diff iteration if requested.
| | * Reimplment git_status_foreach using git diffRussell Belfer2012-03-214-23/+206
| | | | | | | | | | | | | | | This is an initial reimplementation of status using diff a la the way that core git does it.
| * | error-handling: Commit (WIP)Vicent Martí2012-04-022-82/+107
| |/
| * Convert reflog to new errorsRussell Belfer2012-03-202-90/+83
| | | | | | | | Cleaned up some other issues.
| * Convert indexer, notes, sha1_lookup, and signatureRussell Belfer2012-03-195-236/+205
| | | | | | | | More files moved to new error handling style.
| * Migrate index, oid, and utils to new errorsRussell Belfer2012-03-196-225/+205
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Convert attr, ignore, mwindow, status to new errorsRussell Belfer2012-03-1623-467/+348
| | | | | | | | | | Also cleaned up some previously converted code that still had little things to polish.
| * Make git_path_root() cope with windows network pathsnulltoken2012-03-161-0/+9
| | | | | | | | Fix libgit2/libgit2sharp#125
| * Continue error conversionRussell Belfer2012-03-1421-275/+344
| | | | | | | | | | | | | | This converts blob.c, fileops.c, and all of the win32 files. Also, various minor cleanups throughout the code. Plus, in testing the win32 build, I cleaned up a bunch (although not all) of the warnings with the 64-bit build.
| * Convert attr and other files to new errorsRussell Belfer2012-03-146-134/+126
| | | | | | | | | | | | | | | | This continues to add other files to the new error handling style. I think the only real concerns here are that there are a couple of error return cases that I have converted to asserts, but I think that it was the correct thing to do given the new error style.
| * Resolve comments from pull requestRussell Belfer2012-03-135-48/+32
| | | | | | | | | | | | | | 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.
| * Add map.c with shared p_mmap param validationRussell Belfer2012-03-121-0/+36
| | | | | | | | Forgot to add this file in the previous commit
| * Migrate ODB files to new error handlingRussell Belfer2012-03-1219-575/+493
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-099-480/+479
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
| * Merge pull request #590 from arrbee/new-error-handlingRussell Belfer2012-03-0714-426/+369
| |\ | | | | | | Migrating diff to new error handling
| | * Fix issues raised on pull requestRussell Belfer2012-03-072-7/+3
| | | | | | | | | | | | This resolves the comments on pull request #590
| | * Migrating diff to new error handlingRussell Belfer2012-03-0614-425/+372
| | | | | | | | | | | | | | | | | | Ended up migrating a bunch of upstream functions as well including vector, attr_file, and odb in order to get this to work right.
| * | error-handling: ConfigVicent Martí2012-03-072-98/+111
| |/
| * error-handling: RepositoryVicent Martí2012-03-0719-396/+362
| | | | | | | | | | | | | | | | 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.