summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | http: Start negotiate_fetchCarlos Martín Nieto2011-10-121-0/+92
| |
* | net,pkt: add chunked supportCarlos Martín Nieto2011-10-125-26/+72
| | | | | | | | | | | | | | | | | | As we don't know the length of the message we want to send to the other end, we send a chunk size before each message. In later versions, sending the wants might benefit from batching the lines together. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | http: add more modularity to the codeCarlos Martín Nieto2011-10-121-46/+47
| | | | | | | | | | | | | | | | Not every request needs a new connection if we're using a keep-alive connection. Store the HTTP parser, host and port in the transport in order to have it available in later calls. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Merge pull request #449 from csware/include-win-version-informationVicent Martí2011-10-121-0/+42
|\ \ | | | | | | Include windows version information in git2.dll
| * | include version information in git2.dll on WindowsSven Strickroth2011-10-091-0/+42
| |/ | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | fetch: move 'head' so it's visible to the whole functionCarlos Martín Nieto2011-10-091-1/+2
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Merge pull request #444 from carlosmn/fetch-fixesVicent Martí2011-10-095-11/+45
|\ \ | |/ |/| A couple of fetch fixes
| * fetch: store FETCH_HEADCarlos Martín Nieto2011-10-084-5/+37
| | | | | | | | | | | | We should always save the remote's HEAD as FETCH_HEAD locally. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
| * A missing refspec is not an errorCarlos Martín Nieto2011-10-082-7/+9
| | | | | | | | | | | | | | It's rare for a configured remote, but for one given as an URL on the command line, it's more often than not the case. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | msvc: Properly handle inttypes.h/stdint.hVicent Marti2011-10-054-73/+38
| |
* | indexer: NUL-terminate the filenameCarlos Martín Nieto2011-10-051-2/+2
| | | | | | | | | | | | | | As we no longer use the STRLEN macro, the NUL-terminator in the string was not copied over. Fix this. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Merge pull request #441 from csware/ignore-missing-pack-fileVicent Martí2011-10-031-1/+4
|\ \ | | | | | | ignore missing pack file
| * | ignore missing pack file as git doesSven Strickroth2011-10-031-1/+4
| |/ | | | | | | | | | | See http://code.google.com/p/tortoisegit/issues/detail?id=862 Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Merge pull request #438 from jdavid/developmentVicent Martí2011-10-031-7/+16
|\ \ | |/ |/| Make git_oid_fromstrn support hex strings of odd length
| * oid: add missing check to git_oid_fromstrnJ. David Ibáñez2011-10-021-0/+3
| | | | | | | | Signed-off-by: J. David Ibáñez <jdavid.ibp@gmail.com>
| * oid: now git_oid_fromstrn checks whether the given string is too shortJ. David Ibáñez2011-09-301-0/+3
| | | | | | | | Signed-off-by: J. David Ibáñez <jdavid.ibp@gmail.com>
| * oid: optimize git_oid_fromstrn by using memsetJ. David Ibáñez2011-09-301-2/+1
| | | | | | | | Signed-off-by: J. David Ibáñez <jdavid.ibp@gmail.com>
| * oid: make git_oid_fromstrn support hex strings of odd lengthJ. David Ibáñez2011-09-301-5/+9
| | | | | | | | | | | | This fixes issue #433. Signed-off-by: J. David Ibáñez <jdavid.ibp@gmail.com>
* | Squelch a couple of warningsCarlos Martín Nieto2011-10-012-2/+2
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | config: behave like git with [section.subsection]Carlos Martín Nieto2011-10-011-61/+32
| | | | | | | | | | | | | | | | The documentation is a bit misleading. The subsection name is always case-sensitive, but with a [section.subsection] header, the subsection is transformed to lowercase when the configuration is parsed. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | indexer: return immediately if passed a NULL valueCarlos Martín Nieto2011-10-011-0/+3
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | pkt: send all of the wants in the negotiationCarlos Martín Nieto2011-10-011-1/+3
| | | | | | | | | | | | | | A missing if caused the function to return after the first want line without capabilities. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | transport-git: fix git request length calculationCarlos Martín Nieto2011-10-011-1/+1
| | | | | | | | | | | | | | There was an off-by-one error that was uncovered when we used the right length from git_buf. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | transport-git: Encapsulation ist gutVicent Marti2011-10-011-16/+11
| |
* | http-transport: Properly cleanup the WSA contextVicent Marti2011-10-011-13/+13
| |
* | http-transport: Update copyrightVicent Marti2011-10-011-21/+3
| |
* | netops: abstract away socket closingCarlos Martín Nieto2011-10-014-8/+20
| | | | | | | | | | | | | | Winsock wants us to use closesocket() instead of close(), so introduce the gitno_close function, which does the right thing. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | local transport: don't segfault on wrong URLCarlos Martín Nieto2011-10-011-6/+11
| | | | | | | | | | | | | | memset the structure on initialisation and don't try to dereference the vector with the heads if we didn't find a repository. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Initialise the winsock DLLCarlos Martín Nieto2011-10-014-9/+52
| | | | | | | | | | | | | | | | Windows wants us to initialise the networking DLL before we're allowed to send data through a socket. Call WSASetup and WSACleanup if GIT_WIN32 is defined. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Use git_buf in the git requestCarlos Martín Nieto2011-10-011-10/+10
| | | | | | | | | | | | | | This is clearer and sidesteps the issue of what the return value of snprintf is on the particular OS we're running on. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | config: Proper type declarations for 64 bit intsVicent Marti2011-09-303-33/+44
|/
* config: fix check for environment string expansionCarlos Martín Nieto2011-09-301-1/+1
| | | | | | | | | If ExpandEnvironmentStringsW is successful, it returns the amount of characters written, including the NUL terminator. Thanks to Emeric for reading the MSDN documentation correctly. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* refs.c: fix reference_renameschu2011-09-301-1/+1
| | | | | | | | 6c8b458 removed an "unused" variable needed for git_hashtable_insert2(), causing a segfault in reference_rename(). Instead, use git_hashtable_insert(). Signed-off-by: schu <schu-github@schulog.org>
* mingw: Fix compilation warningsVicent Marti2011-09-294-22/+28
|
* netops: Use pragmas only in MSVCVicent Marti2011-09-291-9/+11
|
* index: Silence type-punned warningVicent Marti2011-09-291-1/+4
|
* mingw: Fix printf identifiersVicent Marti2011-09-292-1/+8
|
* odb: Pass compression settings to filebufVicent Marti2011-09-293-9/+10
|
* odb: Let users decide compression level for the loose ODBVicent Marti2011-09-292-4/+11
|
* http-parser: Disable MSVC warnings locallyVicent Marti2011-09-291-10/+0
|
* msvc: Disable warnings in header fileVicent Marti2011-09-281-0/+10
| | | | | Remove clutter from the CMakeLists file by disabling the warnings programatically.
* Really fix MSVCCarlos Martín Nieto2011-09-271-1/+0
| | | | | | These was left over from the previous PRs. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Fix dev branch under MSVCCarlos Martín Nieto2011-09-271-7/+10
| | | | | | | | | | | | | In libgit2: Move an enum out of an int bitfield in the HTTP transport. In the parser: Use int bitfields and change some variable sizes to better fit thir use. Variables that count the size of the data chunk can only ever be as large as off_t. Warning 4127 can be ignored, as nobody takes it seriously anyway. From Emeric: change some variable declarations to keep MSVC happy. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Make repo config loading automatic or completely explicitCarlos Martín Nieto2011-09-271-3/+23
| | | | | | | | | | | git_repository_config wants to take the global and system paths again so that one can be explicit if needed. The git_repository_config_autoload function is provided for the cases when it's good enough for the library to guess where those files are located. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add git_config_find_systemCarlos Martín Nieto2011-09-271-0/+59
| | | | | | | This allows the library to guess where the system configuration file should be located. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* tree: Fix check for valid attributesVicent Marti2011-09-271-2/+4
|
* tree: Use an internal append functiont to add new entriesVicent Marti2011-09-271-19/+25
|
* Make use of the tree cacheCarlos Martín Nieto2011-09-271-0/+30
| | | | | | | Taking advantage of the tree cache, git_tree_create_fromindex becomes comparable in speed to git write-tree when the cache is available. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add git_tree_cache_getCarlos Martín Nieto2011-09-272-1/+25
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Invalidate the path when removing from the indexCarlos Martín Nieto2011-09-271-0/+6
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>