Log

Author Commit Date CI Message
Russell Belfer 56543a60 2013-02-15T16:02:45 Clear up warnings from cppcheck The cppcheck static analyzer generates warnings for a bunch of places in the libgit2 code base. All the ones fixed in this commit are actually false positives, but I've reorganized the code to hopefully make it easier for static analysis tools to correctly understand the structure. I wouldn't do this if I felt like it was making the code harder to read or worse for humans, but in this case, these fixes don't seem too bad and will hopefully make it easier for better analysis tools to get at any real issues.
Russell Belfer 71d62d39 2013-02-15T16:01:31 Fix memory leak in p_getaddrinfo on Amiga If gethostbyname() fails on platforms with NO_ADDRINFO, the code leaks the struct addrinfo that was allocated. This fixes that (and a number of code formatting issues in that area of code in src/posix.c).
Russell Belfer a7ed7460 2013-02-15T15:58:13 Add rudimentary error checks and reformat comments There were a number of functions assigning their return value to `error` without much explanation. I added in some rudimentary error checking to help flesh out the example. Also, I reformatted all of the comments down to 80 cols (and in some cases, slightly updated the wording).
Vicent Martí 1d75acf7 2013-02-15T04:21:41 Merge pull request #1342 from ghedo/development push: fix typo in git_push_finish() doc
Alessandro Ghedini 91f7335e 2013-02-15T13:12:03 push: fix typo in git_push_finish() doc
Vicent Martí fcd7733d 2013-02-14T12:49:46 Merge pull request #1318 from nulltoken/topic/diff-tree-coverage Topic/diff tree coverage
Vicent Martí c9d17120 2013-02-14T11:33:47 Merge pull request #1340 from schu/push-docs push: improve docs on success / failure of git_push_finish
Michael Schubert a53b5e5f 2013-02-14T20:20:18 push: improve docs on success / failure of git_push_finish
Ben Straub a9e1339c 2013-02-14T08:12:05 Fix a leak when canceling a network operation
Philip Kelley 2fe67aeb 2013-02-14T08:46:58 Fix a git_filebuf leak (fixes Win32 clone::can_cancel)
Vicent Martí b7860025 2013-02-14T03:58:11 Merge pull request #1335 from phkelley/development Improve MSVC compiler, linker flags
Philip Kelley 5f633e91 2013-02-13T18:12:51 Change git2.rc to identify git.dll as VOS_NT_WINDOWS32
Philip Kelley 19be3f9e 2013-02-13T12:36:41 Improve MSVC compiler, linker flags
Ben Straub 6a0ffe84 2013-02-12T10:50:55 Merge pull request #1333 from phkelley/push_options Add git_push_options, to set packbuilder parallelism
Russell Belfer fbe67de9 2013-02-12T10:16:30 Merge pull request #1246 from arrbee/fix-force-text-for-diff-blobs Add FORCE_TEXT check into git_diff_blobs code path
Russell Belfer 9c258af0 2013-02-12T10:13:56 Merge pull request #1316 from ben/clone-cancel Allow network operations to cancel
Russell Belfer c2c0874d 2013-02-11T14:44:56 More diff tests with binary data
Russell Belfer ed55fd8b 2013-02-11T13:29:07 Reorganize FORCE_TEXT diff flag checks
Russell Belfer c2907575 2013-01-15T09:24:17 Add FORCE_TEXT check into git_diff_blobs code path `git_diff_blobs` and `git_diff_blob_to_buffer` skip the step where we check file attributes because they don't have a filename associated with the data. Unfortunately, this meant they were also skipping the check for the GIT_DIFF_FORCE_TEXT option and so you could not force a diff of an apparent binary file. This adds the force text check into their code path.
Russell Belfer 40a60510 2013-02-11T14:35:41 Merge pull request #1324 from nulltoken/topic/remote_isvalidname Topic/remote isvalidname
nulltoken 2bca5b67 2013-02-07T23:44:18 remote: Introduce git_remote_is_valid_name() Fix libgit2/libgit2sharp#318
nulltoken 4d811c3b 2013-02-07T23:40:10 refs: No component of a refname can end with '.lock'
nulltoken 624924e8 2013-02-07T23:02:56 remote: reorganize tests
Russell Belfer 390a3c81 2013-02-11T11:44:00 Merge pull request #1190 from nulltoken/topic/reset-paths reset: Allow the selective reset of pathspecs
Philip Kelley e026cfee 2013-02-11T09:12:39 Merge pull request #1323 from jamill/resolve_remote Resolve a remote branch's remote
Jameson Miller db4bb415 2013-02-07T14:53:52 Teach refspec to transform destination reference to source reference
Jameson Miller 2e3e8c88 2013-02-08T11:05:47 Teach remote branch to return its remote
Philip Kelley b8b897bb 2013-02-11T08:28:53 Add git_push_options, to set packbuilder parallelism
Philip Kelley 8c29dca6 2013-02-11T09:25:57 Fix some incorrect MSVC #ifdef's. Fixes #1305
Philip Kelley a150cc87 2013-02-10T18:16:10 Fix a bug introduced in df93a681 'Merge the push...'
Michael Schubert a9d081e5 2013-02-10T19:36:39 Fix -Wmaybe-uninitialized warning
Vicent Martí 70ecec1a 2013-02-08T23:47:38 Merge pull request #1320 from cscheid/development removed other references to api.html
Vicent Martí 276c89a8 2013-02-08T23:46:53 Merge pull request #1327 from phkelley/development Merge the push report into the refs to avoid a 3rd network call
Scott J. Goldman 6ce61a0b 2013-02-08T14:25:41 tests: fix whitespace in refs/rename.c
Philip Kelley df93a681 2013-02-08T15:00:08 Merge the push report into the refs to avoid a 3rd network call
Jameson Miller ff9df883 2013-02-08T14:27:21 Fix Windows symlinks
Russell Belfer f3e49210 2013-02-08T10:02:37 Merge pull request #1249 from yorah/topic/diff-notify-unmatched-pathspecs diff: Add a callback to notify of diffed files
Vicent Martí 5b62eb7d 2013-02-08T02:50:23 Merge pull request #1325 from SHyx0rmZ/fix-windows-symlinks Fix Windows symlinks
Patrick Pokatilo 7672c8c7 2013-02-08T11:29:23 Moved braces to conform to code style
Patrick Pokatilo 64012fdb 2013-02-08T03:24:45 Replace LoadLibrary with GetModuleHandle, since kernel32 is loaded by default As requested
Patrick Pokatilo a49e5bed 2013-02-08T01:26:04 Replace call to strnlen with call to strlen
Patrick Pokatilo f88885e3 2013-02-08T01:10:03 Include <string.h>
Patrick Pokatilo 3b5e44ae 2013-02-08T00:50:20 Fix call to readlink
yorah 0d64ba48 2013-01-25T17:35:46 diff: add a notify callback to `git_diff__from_iterators` The callback will be called for each file, just before the `git_delta_t` gets inserted into the diff list. When the callback: - returns < 0, the diff process will be aborted - returns > 0, the delta will not be inserted into the diff list, but the diff process continues - returns 0, the delta is inserted into the diff list, and the diff process continues
yorah 943700ec 2013-01-18T16:37:13 Return the matched pathspec pattern in `git_pathspec_match_path` Instead of returning directly the pattern as the return value, I used an out parameter, because the function also tests if the passed pathspecs vector is empty. If yes, it considers that the path "matches", but in that case there is no matched pattern per se.
Ben Straub 41713ec1 2013-02-07T10:13:24 Merge pull request #1322 from phkelley/development No bitfields in public headers b/c packing is compiler-specific
Philip Kelley fcd81bcf 2013-02-07T12:47:29 No bitfields in public headers b/c packing is compiler-specific
Scott J. Goldman c9459abb 2013-02-07T03:12:39 tests: fix indentation in repo/message.c
Scott J. Goldman f7b06018 2013-02-07T03:04:50 tests: fix indentation in repo/init.c
Scott J. Goldman 1ca163ff 2013-02-07T02:04:17 tests: fix code style in threads/basic.c
Patrick Pokatilo 94ed23f8 2013-02-07T01:41:20 Call p_readlink to determine symlink size
Carlos Scheidegger ef41ab88 2013-02-06T17:37:51 removed other references to api.html
Vicent Martí a35e8709 2013-02-06T14:21:28 Merge pull request #1319 from cscheid/development removed obsolete reference to api.html
Carlos Scheidegger 4f1da3a2 2013-02-06T16:55:09 removed obsolete reference to api.html
Ben Straub beede432 2013-02-06T13:25:43 Fetchhead: don't expect a tag that isn't there
Ben Straub 169fa384 2013-02-06T13:16:13 Fix fetchhead tests to expect nearly-dangling
Ben Straub f393d4e8 2013-02-06T13:07:56 Clone: fetch all tags
Ben Straub ea57f66b 2013-02-06T11:02:29 Expect standard error code from internal calls
nulltoken e8993455 2012-08-15T20:08:09 diff: Enhance tree-to-tree diff test coverage These tests are related to issue libgit2/libgit2sharp#196
nulltoken 7e858045 2013-02-06T16:06:17 diff: refactor git_diff_tree_to_tree() tests
nulltoken f093cd62 2012-08-15T18:49:01 Add unsymlinked.git test repository
Ben Straub def60ea4 2013-02-05T13:14:48 Allow all non-zero returns to cancel transfers
Ben Straub 42385c96 2013-02-05T12:10:08 Enhance test coverage for transfer cancellation
Ben Straub b71bac9d 2013-02-05T12:03:41 Document callback-triggered cancellation
nulltoken 3ad05221 2013-02-05T16:52:56 Fix MSVC compilation warnings Fix #1308
nulltoken d96aa8a9 2013-01-20T18:24:54 tests: Remove useless code
nulltoken a0c34c94 2013-01-20T13:27:28 reset: Introduce git_reset_default()
Ben Straub fe95ac1b 2013-02-05T10:59:58 Allow progress callback to cancel fetch This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
nulltoken c67ffd4a 2013-01-20T12:08:12 reset: Enhance documentation
nulltoken 3cf58e66 2013-01-15T16:12:12 index: Fix indentations
nulltoken 3f0ed118 2013-01-15T11:03:05 index: Enhance documentation
Vicent Martí fb60d268 2013-02-05T06:18:23 Merge pull request #1315 from nulltoken/development cMakeList: Prevent MSVCR1x0.dll dependency
nulltoken e8670d01 2013-02-05T14:32:09 cMakeList: Prevent MSVCR1x0.dll dependency Deploys the libgit2/libgit2@9041250 fix to RELWITHDEBINFO and MINSIZEREL build flavors Fix #255
Russell Belfer de81aee3 2013-02-04T14:49:28 Merge pull request #1298 from ben/user-at Handle "user@" prefix for credentials partially included in URLs
Ben Straub 630146bd 2013-02-04T13:52:18 Address feedback
Vicent Martí 3261a3e9 2013-02-03T08:41:47 Merge pull request #1307 from nulltoken/fix/revparse_describe revparse: Lookup branch before described tag
nulltoken 0e8e5a61 2013-02-03T11:44:26 revparse: Lookup sha before branch
nulltoken 545b479a 2013-02-02T17:36:20 revparse: Lookup branch before described tag Fix #1306
Ben Straub 15760c59 2013-02-01T19:21:55 Use malloc rather than calloc
Vicent Martí e9631660 2013-02-01T15:57:31 Merge pull request #1303 from csware/win32_consistent_error_encoding Win32: Make sure error messages are consistently UTF-8 encoded
Sven Strickroth c70455c7 2013-02-01T22:53:51 Deduplicate FormatMessage UTF-16 to UTF-8 conversion code Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth bd25a302 2013-02-01T22:22:26 Improved error handling Signed-off-by: Sven Strickroth <email@cs-ware.de>
Vicent Martí db37d3de 2013-02-01T15:37:45 Merge pull request #1299 from csware/support_local_msysgit_install Support local msysgit installations
Vicent Martí 219571a2 2013-02-01T15:31:01 Merge pull request #1302 from jamill/global_config_lookup Try harder to find global config file
Sven Strickroth 89ad1c57 2013-02-01T22:14:52 Get utf8_size from WideCharToMultiByte instead of guessing it Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth b0dc81f0 2013-02-01T16:17:34 Win32: Make sure error messages are consistently UTF-8 encoded W/o this a libgit2 error message could have a mixed encoding: e.g. a filename in UTF-8 combined with a native Windows error message encoded with the local code page. Signed-off-by: Sven Strickroth <email@cs-ware.de>
Jameson Miller 91f13a18 2013-02-01T14:23:26 Try harder to find global config file
Ben Straub c4beee76 2013-02-01T10:00:55 Introduce git__substrdup
Ben Straub 329eee33 2013-02-01T09:41:50 Merge pull request #1286 from lznuaa/master Fix clone fail if repo head detached
Frank Li aa928de0 2013-01-29T17:26:42 Add test case for clone head detached repo Signed-off-by: Frank Li <lznuaa@gmail.com> Signed-off-by: nulltoken <emeric.fermas@gmail.com>
Sven Strickroth 45792c92 2013-02-01T10:32:05 Stick to coding style: Move up braces Signed-off-by: Sven Strickroth <email@cs-ware.de>
Ben Straub 8c36a3cd 2013-01-31T15:24:59 Remove double-free segfaults
Ben Straub 016179d6 2013-01-31T14:54:58 WinHttp: use cred in url if provided
Ben Straub 54ffc1f7 2013-01-31T14:41:01 HTTP: use creds in url if available
Ben Straub cd74cbba 2013-01-31T14:38:22 Plug test leaks
Ben Straub cf7038a6 2013-01-31T14:04:21 Enhance url parsing to include passwords
Russell Belfer 7c32a0b5 2013-01-31T13:20:20 Merge pull request #1300 from carlosmn/ref-leading-slash Crash when resolving a ref starting with "/"
Carlos Martín Nieto e5ef0f18 2013-01-31T20:23:30 refs: handle ALLOW_ONELEVEL normalization with leading slash A leading slash confuses the name normalization code when the flags include ALLOW_ONELEVEL. Catch this case in particular to avoid triggering an assertion in the uppercase check which expects us not to pass it an empty string. The existing tests don't catch this as they simply use the NORMAL flag. This fixes #1300.
Sven Strickroth 01e7128f 2013-01-31T17:44:40 Added Sven Strickroth to AUTHORS Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth c55378fc 2013-01-31T17:43:59 Detect msysgit installation of users without admin rights Signed-off-by: Sven Strickroth <email@cs-ware.de>