Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make url decoding more bulletproofbetter-url-parsing | Ben Straub | 2013-11-05 | 2 | -14/+9 |
| | |||||
* | Remove unnecessary check | Ben Straub | 2013-11-05 | 1 | -1/+1 |
| | |||||
* | Incorporate feedback | Ben Straub | 2013-11-05 | 1 | -5/+5 |
| | |||||
* | Fix ssh.c compile | Ben Straub | 2013-11-04 | 1 | -2/+3 |
| | |||||
* | Compile HTTP parser on win32 (for url parsing) | Ben Straub | 2013-11-04 | 1 | -0/+2 |
| | |||||
* | Unescape url-encoded usernames and passwords | Ben Straub | 2013-11-04 | 2 | -4/+40 |
| | |||||
* | Use http_parser_parse_url to parse urls | Ben Straub | 2013-11-04 | 5 | -116/+102 |
| | |||||
* | Clarify parsing issues and errors | Ben Straub | 2013-11-01 | 1 | -2/+3 |
| | |||||
* | Streamline url-parsing logic. | Ben Straub | 2013-11-01 | 2 | -25/+35 |
| | |||||
* | Merge pull request #1916 from libgit2/simplify-examples | Vicent Martí | 2013-11-01 | 16 | -950/+1255 |
|\ | | | | | Fix examples to make the important stuff more obvious | ||||
| * | Fix typos | Ben Straub | 2013-11-01 | 2 | -3/+3 |
| | | |||||
| * | A few formatting changes for rocco | Carlos Martín Nieto | 2013-11-01 | 4 | -8/+31 |
| | | | | | | | | | | I'm not too happy about manually inserting < and > but those get output as html tags otherwise. | ||||
| * | Update examples/README.md | Russell Belfer | 2013-10-31 | 1 | -6/+14 |
| | | |||||
| * | Format comments for use with docco | Ben Straub | 2013-10-31 | 5 | -72/+86 |
| | | |||||
| * | Clean up showindex sample | Ben Straub | 2013-10-30 | 1 | -23/+15 |
| | | |||||
| * | Reorganize rev-parse example | Ben Straub | 2013-10-30 | 1 | -53/+56 |
| | | |||||
| * | rev-list.c example: use common utils, reorganize | Ben Straub | 2013-10-30 | 1 | -34/+28 |
| | | |||||
| * | cat-file.c example: deploy helpers, reorg | Ben Straub | 2013-10-30 | 1 | -76/+78 |
| | | |||||
| * | add.c: proper frontmatter | Ben Straub | 2013-10-30 | 1 | -3/+8 |
| | | |||||
| * | init.c example: deploy more helpers | Ben Straub | 2013-10-30 | 1 | -7/+4 |
| | | |||||
| * | add.c example: deploy helpers, reorg | Ben Straub | 2013-10-30 | 1 | -57/+61 |
| | | |||||
| * | init example: deploy helpers, reorg | Ben Straub | 2013-10-30 | 1 | -127/+122 |
| | | |||||
| * | Extract common example helpers and reorg examples | Russell Belfer | 2013-10-29 | 7 | -540/+808 |
| | | | | | | | | | | | | | | | | | | This reorganizes a few of the examples so that the main function comes first with the argument parsing extracted into a helper that can come at the end of the file (so the example focuses more on the use of libgit2 instead of command line support). This also creates a shared examples/common.[ch] so that useful helper funcs can be shared across examples instead of repeated. | ||||
* | | Merge pull request #1933 from libgit2/vmg/gcc-warnings | Russell Belfer | 2013-11-01 | 14 | -29/+62 |
|\ \ | | | | | | | Warnings for Windows x64 (MSVC) and GCC on Linux | ||||
| * | | clar: Fix warnings in GCC/Linuxvmg/gcc-warnings | Vicent Marti | 2013-11-01 | 3 | -4/+7 |
| | | | |||||
| * | | iconv: Do not fake an API when iconv is not available | Vicent Marti | 2013-11-01 | 5 | -16/+47 |
| | | | |||||
| * | | checkout: Remove unused vector | Vicent Marti | 2013-11-01 | 1 | -1/+0 |
| | | | |||||
| * | | array: Wrap `array_alloc` as a single statement | Vicent Marti | 2013-11-01 | 1 | -2/+2 |
| | | | |||||
| * | | pack: `__object_header` always returns unsigned values | Vicent Marti | 2013-11-01 | 3 | -5/+4 |
| | | | |||||
| * | | Fix warning on win64 | Linquize | 2013-11-01 | 4 | -6/+7 |
| | | | |||||
* | | | Merge pull request #1918 from libgit2/cmn/indexer-naming | Vicent Martí | 2013-11-01 | 10 | -85/+85 |
|\ \ \ | | | | | | | | | indexer: remove the stream infix | ||||
| * | | | indexer: remove the stream infix | Carlos Martín Nieto | 2013-10-30 | 10 | -85/+85 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was there to keep it apart from the one which read in from a file on disk. This other indexer does not exist anymore, so there is no need for anything other than git_indexer to refer to it. While here, rename _add() function to _append() and _finalize() to _commit(). The former change is cosmetic, while the latter avoids talking about "finalizing", which OO languages use to mean something completely different. | ||||
* | | | config_file: Style fixes | Vicent Marti | 2013-11-01 | 1 | -9/+6 |
| | | | |||||
* | | | Merge remote-tracking branch 'drodriguez/fix-remote-save' into development | Vicent Marti | 2013-11-01 | 7 | -12/+204 |
|\ \ \ | |_|/ |/| | | |||||
| * | | Set new multivar values using unmatcheable regexp. | Daniel Rodríguez Troitiño | 2013-11-01 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seems that regexp in Mac OS X and Linux were behaving differently: while in OS X the empty string didn't match any value, in Linux it was matching all of them, so the the second fetch refspec was overwritting the first one, instead of creating a new one. Using an unmatcheable regular expression solves the problem (and seems to be portable). | ||||
| * | | Fix memory leaks. | Daniel Rodríguez Troitiño | 2013-11-01 | 1 | -0/+2 |
| | | | |||||
| * | | Fix saving remotes with several fetch/push ref specs. | Daniel Rodríguez Troitiño | 2013-11-01 | 7 | -12/+199 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At some moment git_config_delete_entry lost the ability to delete one entry of a multivar configuration. The moment you had more than one fetch or push ref spec for a remote you will not be able to save that remote anymore. The changes in network::remote::remotes::save show that problem. I needed to create a new git_config_delete_multivar because I was not able to remove one or several entries of a multivar config with the current API. Several tries modifying how git_config_set_multivar(..., NULL) behaved were not successful. git_config_delete_multivar is very similar to git_config_set_multivar, and delegates into config_delete_multivar of config_file. This function search for the cvar_t that will be deleted, storing them in a temporal array, and rebuilding the linked list. After calling config_write to delete the entries, the cvar_t stored in the temporal array are freed. There is a little fix in config_write, it avoids an infinite loop when using a regular expression (case for the multivars). This error was found by the test network::remote::remotes::tagopt. | ||||
* | | | Merge pull request #1928 from libgit2/parse-bad-urls | Vicent Martí | 2013-11-01 | 4 | -14/+21 |
|\ \ \ | |/ / |/| | | Improve bad URL handling | ||||
| * | | Prevent another segfault from bad URL | Ben Straub | 2013-10-31 | 2 | -6/+7 |
| | | | |||||
| * | | Test another bad URL | Ben Straub | 2013-10-31 | 1 | -1/+3 |
| | | | |||||
| * | | Prevent segfault with a badly-formed URL | Ben Straub | 2013-10-31 | 1 | -3/+4 |
| | | | |||||
| * | | Add tests for badly-formed URLs | Ben Straub | 2013-10-31 | 2 | -6/+9 |
|/ / | |||||
* | | Merge pull request #1924 from linquize/gmtime | Vicent Martí | 2013-10-31 | 1 | -3/+3 |
|\ \ | | | | | | | Use gmtime() instead of gmtime_t() | ||||
| * | | Use gmtime() instead of gmtime_t() | Linquize | 2013-10-31 | 1 | -3/+3 |
|/ / | | | | | | | The latter is not available on Windows | ||||
* | | Test more kinds of bad url | Ben Straub | 2013-10-30 | 1 | -1/+10 |
| | | |||||
* | | Initialize variables | Ben Straub | 2013-10-30 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #1919 from libgit2/cmn/multi-ack-detailed | Vicent Martí | 2013-10-30 | 3 | -29/+58 |
|\ \ | | | | | | | protocol: basic support for multi_ack_detailed | ||||
| * | | protocol: basic support for multi_ack_detailed | Carlos Martín Nieto | 2013-10-30 | 3 | -29/+58 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tells the server that we speak it, but we don't make use of its extra information to determine if there's a better place to stop negotiating. In a somewhat-related change, reorder the capabilities so we ask for them in the same order as git does. Also take this opportunity to factor out a fairly-indented portion of the negotiation logic. | ||||
* | | | merge: any non-zero return from the user is an error | Carlos Martín Nieto | 2013-10-30 | 1 | -1/+1 |
|/ / | | | | | | | This fixes #1703. | ||||
* | | Remove leftover function declaration | Carlos Martín Nieto | 2013-10-30 | 1 | -15/+0 |
| | |