summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make url decoding more bulletproofbetter-url-parsingBen Straub2013-11-052-14/+9
|
* Remove unnecessary checkBen Straub2013-11-051-1/+1
|
* Incorporate feedbackBen Straub2013-11-051-5/+5
|
* Fix ssh.c compileBen Straub2013-11-041-2/+3
|
* Compile HTTP parser on win32 (for url parsing)Ben Straub2013-11-041-0/+2
|
* Unescape url-encoded usernames and passwordsBen Straub2013-11-042-4/+40
|
* Use http_parser_parse_url to parse urlsBen Straub2013-11-045-116/+102
|
* Clarify parsing issues and errorsBen Straub2013-11-011-2/+3
|
* Streamline url-parsing logic.Ben Straub2013-11-012-25/+35
|
* Merge pull request #1916 from libgit2/simplify-examplesVicent Martí2013-11-0116-950/+1255
|\ | | | | Fix examples to make the important stuff more obvious
| * Fix typosBen Straub2013-11-012-3/+3
| |
| * A few formatting changes for roccoCarlos Martín Nieto2013-11-014-8/+31
| | | | | | | | | | I'm not too happy about manually inserting < and > but those get output as html tags otherwise.
| * Update examples/README.mdRussell Belfer2013-10-311-6/+14
| |
| * Format comments for use with doccoBen Straub2013-10-315-72/+86
| |
| * Clean up showindex sampleBen Straub2013-10-301-23/+15
| |
| * Reorganize rev-parse exampleBen Straub2013-10-301-53/+56
| |
| * rev-list.c example: use common utils, reorganizeBen Straub2013-10-301-34/+28
| |
| * cat-file.c example: deploy helpers, reorgBen Straub2013-10-301-76/+78
| |
| * add.c: proper frontmatterBen Straub2013-10-301-3/+8
| |
| * init.c example: deploy more helpersBen Straub2013-10-301-7/+4
| |
| * add.c example: deploy helpers, reorgBen Straub2013-10-301-57/+61
| |
| * init example: deploy helpers, reorgBen Straub2013-10-301-127/+122
| |
| * Extract common example helpers and reorg examplesRussell Belfer2013-10-297-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-warningsRussell Belfer2013-11-0114-29/+62
|\ \ | | | | | | Warnings for Windows x64 (MSVC) and GCC on Linux
| * | clar: Fix warnings in GCC/Linuxvmg/gcc-warningsVicent Marti2013-11-013-4/+7
| | |
| * | iconv: Do not fake an API when iconv is not availableVicent Marti2013-11-015-16/+47
| | |
| * | checkout: Remove unused vectorVicent Marti2013-11-011-1/+0
| | |
| * | array: Wrap `array_alloc` as a single statementVicent Marti2013-11-011-2/+2
| | |
| * | pack: `__object_header` always returns unsigned valuesVicent Marti2013-11-013-5/+4
| | |
| * | Fix warning on win64Linquize2013-11-014-6/+7
| | |
* | | Merge pull request #1918 from libgit2/cmn/indexer-namingVicent Martí2013-11-0110-85/+85
|\ \ \ | | | | | | | | indexer: remove the stream infix
| * | | indexer: remove the stream infixCarlos Martín Nieto2013-10-3010-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 fixesVicent Marti2013-11-011-9/+6
| | |
* | | Merge remote-tracking branch 'drodriguez/fix-remote-save' into developmentVicent Marti2013-11-017-12/+204
|\ \ \ | |_|/ |/| |
| * | Set new multivar values using unmatcheable regexp.Daniel Rodríguez Troitiño2013-11-011-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ño2013-11-011-0/+2
| | |
| * | Fix saving remotes with several fetch/push ref specs.Daniel Rodríguez Troitiño2013-11-017-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-urlsVicent Martí2013-11-014-14/+21
|\ \ \ | |/ / |/| | Improve bad URL handling
| * | Prevent another segfault from bad URLBen Straub2013-10-312-6/+7
| | |
| * | Test another bad URLBen Straub2013-10-311-1/+3
| | |
| * | Prevent segfault with a badly-formed URLBen Straub2013-10-311-3/+4
| | |
| * | Add tests for badly-formed URLsBen Straub2013-10-312-6/+9
|/ /
* | Merge pull request #1924 from linquize/gmtimeVicent Martí2013-10-311-3/+3
|\ \ | | | | | | Use gmtime() instead of gmtime_t()
| * | Use gmtime() instead of gmtime_t()Linquize2013-10-311-3/+3
|/ / | | | | | | The latter is not available on Windows
* | Test more kinds of bad urlBen Straub2013-10-301-1/+10
| |
* | Initialize variablesBen Straub2013-10-301-2/+2
| |
* | Merge pull request #1919 from libgit2/cmn/multi-ack-detailedVicent Martí2013-10-303-29/+58
|\ \ | | | | | | protocol: basic support for multi_ack_detailed
| * | protocol: basic support for multi_ack_detailedCarlos Martín Nieto2013-10-303-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 errorCarlos Martín Nieto2013-10-301-1/+1
|/ / | | | | | | This fixes #1703.
* | Remove leftover function declarationCarlos Martín Nieto2013-10-301-15/+0
| |