summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add myself to the list of Git authors who consentSebastian Schuberth2011-09-081-0/+1
| | |
| * | Fix an integral overflow on 64-bitSebastian Schuberth2011-09-081-1/+1
| | |
| * | Add casts to get rid of some warnings when filling zlib structuresSebastian Schuberth2011-09-083-10/+10
| | |
| * | Get rid of a superfluous pointer castSebastian Schuberth2011-09-081-1/+1
| | |
| * | Fix minor indentation issues (spaces to tabs)Sebastian Schuberth2011-09-082-6/+6
| | |
| * | Fix some random size_t vs. int conversion warningsSebastian Schuberth2011-09-086-13/+17
|/ /
* | Merge pull request #388 from lambourg/masterVicent Martí2011-09-021-0/+10
|\ \ | | | | | | pull request for #387
| * | Fix for issue #387Jerome Lambourg2011-09-021-0/+10
| | |
* | | Fix compilation in MinGWVicent Marti2011-08-312-8/+5
| |/ |/|
* | posix: Fix undeclared prototypeVicent Marti2011-08-302-7/+11
| |
* | repository: Fix signed/unsigned comp.Vicent Marti2011-08-301-1/+2
| |
* | netops: This is the proper checkVicent Marti2011-08-301-1/+1
| |
* | Merge pull request #380 from kiryl/no-release-debugVicent Martí2011-08-301-3/+1
|\ \ | | | | | | CMakeLists: no need in split debug/release build
| * | CMakeLists: no need in split debug/release buildKirill A. Shutemov2011-08-251-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With GNU toolchain there's no need to split debug/release build. It's useful to have -O2 in debug envitonment since GCC show more warnings in this case. -O2 -g works fine. For release purpose, debug information can be stripted on later stage. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* | | netops: Use the size_t, LukeVicent Marti2011-08-302-9/+11
| | |
* | | Add git_remote_newCarlos Martín Nieto2011-08-302-0/+32
| | | | | | | | | | | | | | | | | | | | | As we no longer expose the transport functions, this is now the only way to connect to a remote when given an URL instead of a remote name Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | Don't hide the transport detailsCarlos Martín Nieto2011-08-305-74/+11
| | | | | | | | | | | | | | | | | | | | | Transports shouldn't get used outside of the library, so don't expose accessor functions. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | Fix Windows compilationCarlos Martín Nieto2011-08-303-15/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Sockets on Windows are unsigned, so define a type GIT_SOCKET which is signed or unsigned depending on the platform. Thanks to Em for his patience with this. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | compat: Move `mkstemp` to the POSIX compat layerVicent Marti2011-08-304-11/+22
| | |
* | | network: <select.h> is not available in MinGWVicent Marti2011-08-301-0/+2
| | |
* | | Merge pull request #378 from kiryl/WuninitializedVicent Martí2011-08-303-8/+11
|\ \ \ | | | | | | | | Wuninitialized
| * | | transport_git: add missed error handlingKirill A. Shutemov2011-08-241-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
| * | | Fix false positive -Wuninitialized warningsKirill A. Shutemov2011-08-242-8/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | GCC produces several -Wuninitialized warnings. Most of them can be fixed if we make visible for gcc that git__throw() and git__rethrow() always return first argument. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* | | Merge pull request #379 from kiryl/STRLENVicent Martí2011-08-2514-36/+34
|\ \ \ | |/ / |/| | Drop STRLEN() macros
| * | pkt: use sizeof() instead of strlen() to avoid variable length arrayKirill A. Shutemov2011-08-261-1/+1
| | | | | | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
| * | Drop STRLEN() macrosKirill A. Shutemov2011-08-2514-36/+34
|/ / | | | | | | | | | | | | There is no need in STRLEN macros. Compilers can do this trivial optimization on its own. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* | transport: Merge bitfieldVicent Marti2011-08-181-2/+2
| | | | | | | | I don't think MSVC merges these automatically.
* | posix: Properly handle `snprintf` in all platformsVicent Marti2011-08-1812-35/+30
| |
* | odb: Do not pass around a header when hashingVicent Marti2011-08-183-14/+10
| |
* | Keep sending want lines if the server doesn't anwer a flushCarlos Martín Nieto2011-08-181-0/+23
| | | | | | | | | | | | | | | | | | Some servers take a long time to answer and expect us to keep sending want lines; otherwise they close the connection. Avoid this by waiting for one second for the server to answer. If the timeout runs out, treat is as a NAK and keep sending want lines. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Actually implement object negotiationCarlos Martín Nieto2011-08-184-30/+79
| | | | | | | | | | | | | | | | Only signal that we need a pack if we do need it and don't send a want just because it's the first. If we don't need to download the pack, then we can skip all of the negotiation and just return success. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Implement and bind local_send_wantsCarlos Martín Nieto2011-08-181-3/+12
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Move negotiation to the transportCarlos Martín Nieto2011-08-185-46/+83
| | | | | | | | | | | | | | | | | | There are many ways how a transport might negotiate with the server, so instead of making it fit into the smart protocol model, let the transport do its thing. For now, the git protocol limits itself to send only 160 "have" lines so we don't flood the server. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Update transport lifetime documentationCarlos Martín Nieto2011-08-181-13/+10
| | | | | | | | | | | | | | The original was written before any code was written and had nothing to do with the way things are actually done. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Use time sorting in fetchCarlos Martín Nieto2011-08-181-0/+1
| | | | | | | | | | | | This is what the docs say tha we should use. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Be smarter about selecting wantsCarlos Martín Nieto2011-08-182-30/+3
| | | | | | | | | | | | | | There is no need to inspect what the local repository is like. Only check whether the objects exist locally. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Remove enum git_whnCarlos Martín Nieto2011-08-183-24/+6
| | | | | | | | | | | | Instead, use flags inside the git_remote_head structure. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Assert a filename in indexer creationCarlos Martín Nieto2011-08-181-0/+2
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Don't try to download the packfile too earlyCarlos Martín Nieto2011-08-181-14/+11
| | | | | | | | | | | | | | | | Make sure we only try to download the pack if we find the pack header in the stream, and not if the server takes a bit longer to send us the last NAK. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Add git_remote_update_tipsCarlos Martín Nieto2011-08-182-0/+37
| | | | | | | | | | | | | | This function updates the references in the local reference storage to match the ones in the remote. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Implement cooperative cachingCarlos Martín Nieto2011-08-183-4/+49
| | | | | | | | | | | | | | | | | | When indexing a file with ref deltas, a temporary cache for the offsets has to be built, as we don't have an index file yet. If the user takes the responsiblity for filling the cache, the packing code will look there first when it finds a ref delta. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Rethrow pack entry offset errorCarlos Martín Nieto2011-08-181-1/+1
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Use strcpy+strcat as memcpy was overlappingCarlos Martín Nieto2011-08-181-2/+3
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Use common capabilitiesCarlos Martín Nieto2011-08-184-5/+78
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Only wait for pack if we need itCarlos Martín Nieto2011-08-185-8/+40
| | | | | | | | | | | | | | Provide the git_remote_download function to instruct the library to downlad the packfile and let the user know the temporary location. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Tell the user where the downloaded packfile is storedCarlos Martín Nieto2011-08-184-10/+14
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Don't expose the fetch code to the userCarlos Martín Nieto2011-08-185-10/+41
| | | | | | | | | | | | | | | | Move the generation of the want-list to be done from the negotiate function, and keep the filtered references inside the remote structure. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Bind the configuration and remotes to a repositoryCarlos Martín Nieto2011-08-185-4/+11
| | | | | | | | | | | | | | | | Configurations when taken from a repository and remotes should be identifiable as coming from a particular repository. This allows us to reduce the amount of variables that the user has to keep track of. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Download packCarlos Martín Nieto2011-08-186-40/+165
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Move have sendingCarlos Martín Nieto2011-08-186-76/+129
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>