summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix opendir/readdir and friends on Win32 to use Unicodeutf8-paths-win32Paul Betts2011-09-192-6/+15
|
* Rewrite p_* functions to use Unicode and marshal to UTF8 internallyPaul Betts2011-09-197-57/+278
|
* Create cross-platform setenvPaul Betts2011-09-193-0/+10
|
* Merge pull request #384 from kiryl/warningsVicent Martí2011-09-1813-41/+40
|\ | | | | Add more -W flags to CFLAGS
| * CMakefile: add -Wmissing-prototypes and fix warningsKirill A. Shutemov2011-08-3011-33/+29
| | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
| * CMakefile: add -Wstrict-prototypes and fix warningsKirill A. Shutemov2011-08-301-1/+1
| | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
| * CMakefile: add -Wstrict-aliasing=2 and fix warningsKirill A. Shutemov2011-08-302-7/+10
| | | | | | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* | Merge pull request #397 from lambourg/developmentVicent Martí2011-09-181-0/+2
|\ \ | | | | | | Fix compilation issues with mingw64 headers
| * | Fix compilation issues with ming64 headersJerome Lambourg2011-09-121-0/+2
| | |
* | | Merge pull request #394 from carlosmn/tree-fromindexVicent Martí2011-09-181-70/+83
|\ \ \ | | | | | | | | Use git_treebuilder to write the index as a tree
| * | | tree: use git_treebuilder to write the index as a treeCarlos Martín Nieto2011-09-101-70/+83
| |/ / | | | | | | | | | | | | | | | | | | There is no point in reinventing the wheel when using the treebuilder is much more straightforward and makes the code more readable. There is no optimisation, and the performance is no worse than when writing the tree object ourselves.
* | | Merge pull request #398 from carlosmn/config-autohomeVicent Martí2011-09-181-5/+3
|\ \ \ | | | | | | | | git_repository_config: open global config file automatically
| * | | git_repository_config: open global config file automaticallyCarlos Martín Nieto2011-09-121-5/+3
| |/ / | | | | | | | | | | | | | | | If the global configuration file is missing, it is ignored. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | Merge pull request #408 from schu/fixup-statusVicent Martí2011-09-181-3/+4
|\ \ \ | | | | | | | | Fixup status.c
| * | | status.c: add missing check for errorschu2011-09-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | dirent_cb() didn't check the return value of determine_status(). Signed-off-by: schu <schu-github@schulog.org>
| * | | status.c: remove wrong address operatorschu2011-09-171-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: schu <schu-github@schulog.org>
* | | | Merge pull request #393 from schu/unused-but-set-variableVicent Martí2011-09-181-1/+2
|\ \ \ \ | | | | | | | | | | filebuf.c: fix unused-but-set warning
| * | | | filebuf.c: fix unused-but-set warningschu2011-09-091-1/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | write_deflate() used to ignore errors by zlib's deflate function when not compiling in DEBUG mode. Always read $result and throw an error instead. Signed-off-by: schu <schu-github@schulog.org>
* | | | Merge pull request #392 from sschuberth/developmentVicent Martí2011-09-181-4/+2
|\ \ \ \ | | | | | | | | | | Fix a bug and GCC warning introduced in 932669b
| * | | | Fix a bug and GCC warning introduced in 932669bSebastian Schuberth2011-09-121-4/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | For unsigned types, the comparison >= 0 is always true, so avoid it by using a post-decrement and integrating the initial assigment into the loop body. No change in behavior is intended.
* | | | Merge pull request #399 from carlosmn/free-nullVicent Martí2011-09-182-0/+6
|\ \ \ \ | | | | | | | | | | Add checks for NULL to the config and remote free functions
| * | | | Add checks for NULL to the config and remote free functionsCarlos Martín Nieto2011-09-132-0/+6
| |/ / / | | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | | Tabify everythingVicent Marti2011-09-1949-627/+627
| | | | | | | | | | | | | | | | | | | | | | | | There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
* | | | Cleanup legal dataVicent Marti2011-09-1999-940/+438
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* | | status: enhance determination of statuses for a whole directorynulltoken2011-09-151-193/+477
| | | | | | | | | | | | | | | - Should increase performance through usage of a walker - No callback invocation for unaltered entries
* | | status: enhance determination of status for a single filenulltoken2011-09-151-82/+121
| | | | | | | | | | | | | | | | | | - fix retrieval of a file status when working against a newly initialized repository - reduce memory pressure - prevents a directory from being tested
* | | repository: Add git_repository_head()nulltoken2011-09-151-5/+17
|/ /
* | 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-085-12/+16
| |
* | 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
| |
* | netops: Use the size_t, LukeVicent Marti2011-08-302-9/+11
| |
* | Add git_remote_newCarlos Martín Nieto2011-08-301-0/+20
| | | | | | | | | | | | | | 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-304-66/+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>
* | | 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-2513-35/+33
|/ / | | | | | | | | | | | | 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.