summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | iterator: prevent git_iterator_free() from segfaulting when being passed a ↵nulltoken2012-05-131-0/+3
| |/ |/| | | | | NULL iterator
* | Merge pull request #683 from arrbee/better-repo-initVicent Martí2012-05-121-1/+68
|\ \ | | | | | | Improve repo initialization to be more like git
| * | Fixed leaks and added testsRussell Belfer2012-05-111-16/+13
| | |
| * | Improve repo initialization to be more like gitRussell Belfer2012-05-091-1/+71
| |/ | | | | | | | | | | This adds a bunch of template files to the initialization for hooks, info/exclude, and description. This makes our initialized repo look more like core gits.
* | object: make git_object_lookup() return GIT_ENOTFOUND when searching for an ↵nulltoken2012-05-111-2/+2
|/ | | | | | | | | existing object by specifying an incorrect type This fix complements cb0ce16bbe8efe2098ef9cfffcf158301b036565 and cover the following additional use cases - retrieving an object which has been previously searched, found and cached - retrieving an object through an non ambiguous abbreviated id
* Fix 64-bit build warningRussell Belfer2012-05-091-1/+1
|
* Merge pull request #679 from nulltoken/fix/git__isspaceRussell Belfer2012-05-091-1/+1
|\ | | | | util: Fix git__isspace() implementation
| * util: Fix git__isspace() implementationnulltoken2012-05-091-1/+1
| | | | | | | | | | | | The characters <space>, <form-feed>, <newline>, <carriage-return>, <tab>, and <vertical-tab> are part of the "space" definition. cf. http://www.kernel.org/doc/man-pages/online/pages/man5/locale.5.html
* | fetch: filter tag annotation pseudo-refs while generating wantsCarlos Martín Nieto2012-05-092-4/+4
| | | | | | | | | | | | | | These objects aren't considered as being advertised, so asking for them will cause the remote end to close the connection. This makes the checking in update_tips() unnecessary, because they don't get inserted in the list.
* | remote: don't try to create tag annotations as refs/tags/v0.1.0^{}Carlos Martín Nieto2012-05-091-0/+4
| | | | | | | | | | Skip them for now. Eventually we might want to filter these out earler.
* | indexer: close the pack's fd before renaming itCarlos Martín Nieto2012-05-091-1/+2
|/ | | | Windows gets upset if we rename a file with an open descriptor.
* msvc: Do not use `isspace` Vicent Martí2012-05-097-18/+33
| | | | Locale-aware bullshit bitting my ass again yo
* Merge pull request #677 from arrbee/status-without-headVicent Martí2012-05-084-3/+53
|\ | | | | Add support for diffing index with no HEAD
| * Add support for diffing index with no HEADRussell Belfer2012-05-084-3/+53
| | | | | | | | | | | | | | When a repo is first created, there is no HEAD yet and attempting to diff files in the index was showing nothing because a tree iterator could not be constructed. This adds an "empty" iterator and falls back on that when the head cannot be looked up.
* | message: CleanupVicent Martí2012-05-081-2/+10
| |
* | message: Proper OOM handlingVicent Martí2012-05-081-3/+2
| |
* | Merge pull request #670 from nulltoken/ntk/topic/clean-commit_messageVicent Martí2012-05-084-6/+91
|\ \ | |/ |/| Clean commit and tag messages
| * commit/tag: ensure the message is cleaned upnulltoken2012-05-074-6/+91
| | | | | | | | | | | | 'git commit' and 'git tag -a' enforce some conventions, like cleaning up excess whitespace and making sure that the last line ends with a '\n'. This fix replicates this behavior. Fix libgit2/libgit2sharp#117
* | Merge pull request #668 from nulltoken/topic/binary-blobsRussell Belfer2012-05-081-24/+59
|\ \ | | | | | | Enhancing the blob diffing experience
| * | diff: fix the diffing of two identical blobsnulltoken2012-05-071-0/+8
| | |
| * | diff: make git_diff_blobs() able to detect binary blobsnulltoken2012-05-071-0/+28
| | |
| * | diff: fix the diffing of a concrete blob against a null onenulltoken2012-05-071-22/+20
| | |
| * | diff: When diffing two blobs, ensure the delta callback parameter is filled ↵nulltoken2012-05-071-2/+6
| | | | | | | | | | | | with relevant information
| * | diff: remove unused parameternulltoken2012-05-071-4/+1
| |/
* | Merge pull request #676 from carlosmn/remotesVicent Martí2012-05-082-7/+39
|\ \ | | | | | | Add git_remote_add() and change signature for _new()
| * | remotes: change git_remote_new's signatureCarlos Martín Nieto2012-05-081-6/+13
| | | | | | | | | | | | | | | Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
| * | remote: add git_remote_add()Carlos Martín Nieto2012-05-081-0/+25
| | | | | | | | | | | | Helper function to create a remote with the default settings
| * | config: don't use freed memory on errorCarlos Martín Nieto2012-05-081-6/+6
| | | | | | | | | | | | | | | Change the order and set a NULL so we don't try to access freed memory in case of an error.
* | | Clean up warnings and testsRussell Belfer2012-05-081-1/+1
|/ /
* | Merge pull request #674 from nulltoken/topic/GIT_ENOTFOUNDRussell Belfer2012-05-086-23/+47
|\ \ | | | | | | Improve the interop with bindings
| * | status: Prevent git_status_file() from returning ENOTFOUND when not applicablenulltoken2012-05-081-4/+4
| | |
| * | repository: ensure git_repository_discover() returns ENOTFOUND when unable ↵nulltoken2012-05-081-2/+3
| | | | | | | | | | | | to find a repository given the constraints
| * | compat: make p_realpath Windows implementation be a bit more POSIX compliant ↵nulltoken2012-05-082-5/+22
| | | | | | | | | | | | and fail if the provided path does not lead to an existing entry
| * | path: Make git_path_prettify() properly handle ENOTDIR errno valuenulltoken2012-05-081-1/+1
| | |
| * | object: make git_object_lookup() return GIT_ENOTFOUND when searching for an ↵nulltoken2012-05-081-2/+2
| | | | | | | | | | | | existing object by specifying an incorrect type
| * | remote: make git_remote_load() return GIT_ENOTFOUND when the remote url ↵nulltoken2012-05-081-3/+1
| | | | | | | | | | | | cannot be retrieved from the config file
| * | remote: ensure the allocated remote is freed when an error occurs during its ↵nulltoken2012-05-081-8/+16
| | | | | | | | | | | | loading
* | | Minor error fixesCarlos Martín Nieto2012-05-082-1/+2
|/ / | | | | | | | | | | | | Clear the error in pkt when we notice that the remote is starting to send the packfile. Fix the format string for Windows networking errors.
* | Merge pull request #672 from scottjg/more-mingw32-fixesVicent Martí2012-05-071-1/+0
|\ \ | | | | | | More mingw32 compilation fixes.
| * | Define explicit _WIN32_WINNT version in makefileScott J. Goldman2012-05-071-1/+0
| |/ | | | | | | | | | | | | | | | | Previously, it was defined in netops.c, but it's also needed in one of the clar tests, so I figured we might as well just make it global for the whole project. Without it, the mingw32 linker won't resolve GetProcessId() (called from the core/errors.c clar test) because of some conditionals in windows.h.
* | Fix directory finding for attrsRussell Belfer2012-05-071-3/+3
| | | | | | | | | | | | The fix to support attrs on bare repos went a little too far in trying to avoid using the working directory and ended up not processing the input path quite correctly.
* | compat: make p_open able to accept optional mode when passing the O_CREAT flagnulltoken2012-05-074-7/+32
|/ | | | This has the nice side effect of making test_attr_repo__staging_properly_normalizes_line_endings_according_to_gitattributes_directives() test pass again on Windows. This test started to fail after commit 674a198 was applied.
* transport git: don't use 'error' uninitializedCarlos Martín Nieto2012-05-061-1/+1
|
* compat: Add `stdarg.h` includeVicent Martí2012-05-051-0/+1
|
* Merge remote-tracking branch 'scottjg/fix-mingw32' into developmentVicent Martí2012-05-055-17/+24
|\ | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/transports/http.c tests-clar/clar
| * Fix missing prototype warning in utf-conv.cScott J. Goldman2012-05-051-0/+1
| |
| * Fix gitno_connect() error handling on WindowsScott J. Goldman2012-05-054-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | gitno_connect() can return an error or socket, which is fine on most platforms where sockets are file descriptors (signed int), but on Windows, SOCKET is an unsigned type, which is problematic when we are trying to test if the socket was actually a negative error code. This fix seperates the error code and socket in gitno_connect(), and fixes the error handling in do_connect() functions to compensate. It appears that git_connect() and the git-transport do_connect() functions had bugs in the non-windows cases too (leaking sockets, and not properly reporting connection error, respectively) so I went ahead and fixed those too.
* | Merge pull request #664 from arrbee/attrs-from-indexdevelopment-mergeVicent Martí2012-05-0520-246/+462
|\ \ | | | | | | Support git attrs from index (and bare repo)
| * | Fix valgrind issuesRussell Belfer2012-05-046-18/+37
| | | | | | | | | | | | | | | | | | | | | There are three changes here: - correctly propogate error code from failed object lookups - make zlib inflate use our allocators - add OID to notfound error in ODB lookups
| * | Fix memory leaks and use after freeRussell Belfer2012-05-045-16/+32
| | |