Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | http: make sure we can consume the data we requestcmn/http-recv-buffer | Carlos Martín Nieto | 2014-08-16 | 1 | -4/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | The recv buffer (parse_buffer) and the buffer have independent sizes and offsets. We try to fill in parse_buffer as much as possible before passing it to the http parser. This is fine most of the time, but fails us when the buffer is almost full. In those situations, parse_buffer can have more data than we would be able to put into the buffer (which may be getting full if we're towards the end of a data sideband packet). To work around this, we check if the space we have left on our buffer is smaller than what could come from the network. If this happens, we make parse_buffer think that it has as much space left as our buffer, so it won't try to retrieve more data than we can deal with. As the start of the data may no longer be at the start of the buffer, we need to keep track of where it really starts (data_offset) and use that in our calculations for the real size of the data we received from the network. This fixes #2518. | ||||
* | git_remote_ls() should return an error if the transport is not available | Jacques Germishuys | 2014-08-15 | 1 | -0/+7 |
| | |||||
* | Introduce proper http authentication API | Edward Thomson | 2014-08-15 | 5 | -282/+528 |
| | |||||
* | Add GSSAPI support for SPNEGO/Kerberos auth over HTTP | Edward Thomson | 2014-08-15 | 1 | -30/+287 |
| | |||||
* | Introduce git_buf_decode_base64 | Edward Thomson | 2014-08-15 | 5 | -15/+63 |
| | | | | Decode base64-encoded text into a git_buf | ||||
* | Perform HTTP keep-alive | Edward Thomson | 2014-08-15 | 1 | -3/+12 |
| | |||||
* | Custom transport: minor cleanups | Edward Thomson | 2014-08-14 | 4 | -62/+89 |
| | | | | | | | | | | | | * Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://"). | ||||
* | Allow NULL error message prefix when class=GITERR_OS | Edward Thomson | 2014-08-13 | 1 | -7/+9 |
| | |||||
* | config: a multiline var can start immediately | Carlos Martín Nieto | 2014-08-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | In the check for multiline, we traverse the backslashes from the end backwards and int the end assert that we haven't gone past the beginning of the line. We make sure of this in the loop condition, but we also check in the return value. However, for certain configurations, a line in a multiline variable might be empty to aid formatting. In that case, 'end' == 'start', since we ended up looking at the first char which made it a multiline. There is no need for the (end > start) check in the return, since the loop guarantees we won't go further back than the first char in the line, and we do accept the first char to be the final backslash. This fixes #2483. | ||||
* | Merge pull request #2507 from libgit2/rb/timer-typo | Vicent Marti | 2014-08-09 | 1 | -3/+3 |
|\ | | | | | Typo in timer constants | ||||
| * | Fix typo in timer normalization constantsrb/timer-typo | Russell Belfer | 2014-08-05 | 1 | -3/+3 |
| | | | | | | | | | | The effect of this would be that various update callbacks would not be made at the correct interval. | ||||
* | | Don't report status on named pipes | Russell Belfer | 2014-08-08 | 1 | -11/+12 |
| | | | | | | | | | | Git skips entries in directories that are not S_ISDIR, S_ISREG, or S_ISLNK, so let's make libgit2 do the same thing. | ||||
* | | Merge pull request #2471 from jacquesg/compatibility-cleanup | Vicent Marti | 2014-08-07 | 11 | -124/+145 |
|\ \ | |/ |/| | Compatibility/Portability cleanup | ||||
| * | Introduce some consistency in definition/declaration ordering | Jacques Germishuys | 2014-08-05 | 2 | -17/+17 |
| | | |||||
| * | Move p_realpath logic to realpath.c | Jacques Germishuys | 2014-08-05 | 2 | -14/+9 |
| | | |||||
| * | Consistently use p_snprintf | Jacques Germishuys | 2014-08-05 | 3 | -12/+13 |
| | | |||||
| * | Cleanup portability/compatibility layer | Jacques Germishuys | 2014-08-05 | 7 | -90/+106 |
| | | | | | | | | | | | | | | * Removes mingw-compat.h * Cleans up separation of compiler/platform idiosyncrasies * Unifies mingw/msvc stat structures and functions * (Tries to) hide more compiler specific implementation details (even in our internal API) | ||||
| * | Define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH if not defined | Jacques Germishuys | 2014-08-05 | 1 | -0/+4 |
| | | |||||
| * | Silence unused variables warnings | Jacques Germishuys | 2014-08-05 | 2 | -0/+4 |
| | | |||||
| * | Only create openssl_locks if thread support is enabled | Jacques Germishuys | 2014-07-13 | 1 | -0/+2 |
| | | |||||
| * | Fix unix/posix.h include guard | Jacques Germishuys | 2014-07-13 | 1 | -2/+2 |
| | | |||||
* | | array: mark the array to grow as volatilecmn/revwalk-no-prealloc | Carlos Martín Nieto | 2014-07-25 | 1 | -1/+1 |
| | | | | | | | | | | | | This works around strict aliasing rules letting some versions of GCC (particularly on RHEL 6) thinking that they can skip updating the size of the array when calculating the next element's offset. | ||||
* | | revwalk: remove preallocation of the uninteresting commits | Carlos Martín Nieto | 2014-07-24 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | | | | | Preallocating two commits doesn't make much sense as leaving allocation to the first array usage will allocate a sensible size with room for growth. This preallocation has also been hiding issues with strict aliasing in the tests, as we have fairly simple histories and never trigger the growth. | ||||
* | | Merge pull request #2477 from ethomson/merge | Vicent Marti | 2014-07-23 | 1 | -2/+1 |
|\ \ | | | | | | | Don't allow conflicts by default | ||||
| * | | Don't allow conflicts by default | Edward Thomson | 2014-07-17 | 1 | -2/+1 |
| | | | |||||
* | | | Merge pull request #2484 from libgit2/fix-git-status-list-new-unreadable-folder | Vicent Marti | 2014-07-23 | 7 | -12/+57 |
|\ \ \ | | | | | | | | | Fix git status list new unreadable folder | ||||
| * | | | undo indentation change in diff_print.cfix-git-status-list-new-unreadable-folder | Alan Rogers | 2014-07-23 | 1 | -9/+9 |
| | | | | |||||
| * | | | Merge remote-tracking branch 'origin/master' into ↵ | Alan Rogers | 2014-07-22 | 39 | -379/+719 |
| |\ \ \ | | |/ / | | | | | | | | | fix-git-status-list-new-unreadable-folder | ||||
| * | | | Remove debug printfs. | Alan Rogers | 2014-07-22 | 1 | -2/+0 |
| | | | | |||||
| * | | | Merge remote-tracking branch 'origin/development' into ↵ | Alan Rogers | 2014-07-10 | 12 | -164/+276 |
| |\ \ \ | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder | ||||
| * \ \ \ | Merge remote-tracking branch 'origin/development' into ↵ | Alan Rogers | 2014-06-04 | 55 | -605/+1413 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder Conflicts: include/git2/diff.h | ||||
| * | | | | | Clear out the struct. | Alan Rogers | 2014-06-04 | 1 | -0/+1 |
| | | | | | | |||||
| * | | | | | Implement GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED | Alan Rogers | 2014-06-04 | 1 | -1/+4 |
| | | | | | | |||||
| * | | | | | GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED | Alan Rogers | 2014-06-03 | 1 | -0/+2 |
| | | | | | | |||||
| * | | | | | Add GIT_STATUS_OPT_INCLUDE_UNREADABLE | Alan Rogers | 2014-05-30 | 1 | -0/+2 |
| | | | | | | |||||
| * | | | | | Don't need to duplicate this code. | Alan Rogers | 2014-05-23 | 1 | -5/+1 |
| | | | | | | |||||
| * | | | | | Return GIT_DELTA_UNREADABLE for a file with a mode change | Alan Rogers | 2014-05-22 | 1 | -0/+5 |
| | | | | | | |||||
| * | | | | | Remove errant whitespace. | Alan Rogers | 2014-05-21 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Return GIT_FILEMODE_UNREADABLE for files that fail to stat. | Alan Rogers | 2014-05-21 | 2 | -18/+24 |
| | | | | | | |||||
| * | | | | | Start adding GIT_DELTA_UNREADABLE and GIT_STATUS_WT_UNREADABLE. | Alan Rogers | 2014-05-20 | 6 | -19/+47 |
| | | | | | | |||||
| * | | | | | Skip unreadable files for now. | Alan Rogers | 2014-05-20 | 2 | -5/+9 |
| | | | | | | |||||
| * | | | | | Rename GIT_ENOACCESS -> GIT_EUNREADABLE | Alan Rogers | 2014-05-20 | 1 | -7/+4 |
| | | | | | | |||||
| * | | | | | Skip unreadable files for now. | Alan Rogers | 2014-05-15 | 1 | -2/+1 |
| | | | | | | |||||
| * | | | | | Return a specific error for EACCES. | Alan Rogers | 2014-05-15 | 1 | -0/+4 |
| | | | | | | |||||
* | | | | | | git_cherry_pick -> git_cherrypick | Edward Thomson | 2014-07-22 | 3 | -41/+41 |
| |_|_|/ / |/| | | | | |||||
* | | | | | Merge pull request #2475 from libgit2/expose-buffer-binary-detection | Vicent Marti | 2014-07-16 | 1 | -0/+11 |
|\ \ \ \ \ | | | | | | | | | | | | | Export git_buf_text_is_binary and git_buf_text_contains_nul. | ||||
| * | | | | | Just put it all in buffer. | joshaber | 2014-07-16 | 3 | -3/+29 |
| | | | | | | |||||
| * | | | | | Export git_buf_text_is_binary and git_buf_text_contains_nul.expose-buffer-binary-detection | joshaber | 2014-07-15 | 2 | -18/+3 |
| | |_|_|/ | |/| | | | | | | | | | | | | | So that users don’t need to implement binary detection themselves. | ||||
* | | | | | Merge pull request #2476 from linquize/config-lf-eof | Vicent Marti | 2014-07-16 | 1 | -3/+3 |
|\ \ \ \ \ | | | | | | | | | | | | | When adding new config section, handle config file not ending with LF | ||||
| * | | | | | Make sure \n is at the end of config file before a new section is written | Linquize | 2014-07-16 | 1 | -3/+3 |
| |/ / / / |