summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1778 from libgit2/push_tag_to_tag_testVicent Martí2013-08-161-11/+32
|\ | | | | push: handle tag chains correctly
| * push: handle tag chains correctlyCarlos Martín Nieto2013-08-161-11/+32
| | | | | | | | | | | | | | | | | | When dealing with a chain of tags, we need to enqueue each of them individually, which means we can't use `git_tag_peel` as that jumps over the intermediate tags. Do the peeling manually so we can look at each object and take the appropriate action.
* | Add new git_signature_default API using configRussell Belfer2013-08-161-1/+18
| | | | | | | | | | This adds a new API for creating a signature that uses the config to look up "user.name" and "user.email".
* | Give credit to PHP for the p_readlink function in posix_w32.cMartin Woodward2013-08-161-0/+9
| |
* | revparse: Use more idiomatic error value testEvan Hanson2013-08-151-1/+1
| |
* | revparse: Free left side of invalid range revspecsEvan Hanson2013-08-151-7/+3
| | | | | | | | | | | | This fixes a small memory leak in git_revparse where early returns on errors from git_revparse_single cause a free() on the (reallocated) left side of the revspec to be skipped.
* | sha1-lookup: This assert was correctVicent Marti2013-08-151-1/+1
| |
* | Commit 7affc2f7 removed var initializationRussell Belfer2013-08-141-0/+1
| | | | | | | | | | | | That commit accidentally removed the initialization of the "start" variable giving undefined results for the host extraction from the url input.
* | Merge pull request #1780 from phkelley/developmentVicent Martí2013-08-141-2/+27
|\ \ | | | | | | Respect GIT_SSL_NO_VERIFY and http.sslVerify
| * | Respect GIT_SSL_NO_VERIFY and http.sslVerifyPhilip Kelley2013-08-131-2/+27
| | |
* | | Merge pull request #1783 from libgit2/cmn/relax-remoteVicent Martí2013-08-141-6/+0
|\ \ \ | | | | | | | | remote: relax the url rules
| * | | remote: relax the url rulesCarlos Martín Nieto2013-08-141-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accept any value for the remote's url, including an empty string which we used to reject as invalid configuration. This is not quite what git does (although it has its own problems with such configurations) and it makes it harder to fix the issue, by not letting the user modify it. As we already need to check for a valid URL when we try to connect to the network, let that perform the check, as we don't need to do it anywhere else.
* | | | Merge pull request #1781 from brodie/brodie/stat-before-openVicent Martí2013-08-141-5/+12
|\ \ \ \ | | | | | | | | | | fileops: stat() before open()ing in git_futils_readbuffer_updated()
| * | | | fileops: stat() before open()ing in git_futils_readbuffer_updated()Brodie Rao2013-08-131-5/+12
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts refactoring done in 13224ea4aad9a1b3c9cc4c992ceaea9af623e047 that introduces a performance regression for NFS when reading files that don't exist. open() forces a cache invalidation on NFS, while stat()ing a file just uses the cache and is very quick. To give a specific example, say you have a repo with a thousand packed refs. Before this change, looking up every single one ould incur a thousand slow open() calls. With this change, it's a thousand fast stat() calls.
* | | | oid: Helper for old-school hashcmpvmg/no-lookupVicent Marti2013-08-142-11/+14
| | | |
* | | | sha1_lookup: Hello my name is MSVC and how do I pointerVicent Marti2013-08-141-1/+3
| | | |
* | | | sha1_lookup: do not use the "experimental" lookup modeVicent Marti2013-08-143-2/+32
| |/ / |/| |
* | | Merge pull request #1779 from ben/win32-precompiled-header-speedupBen Straub2013-08-131-0/+3
|\ \ \ | | | | | | | | Speed up build under MSVC
| * | | Add some things to precompiled headerBen Straub2013-08-131-0/+3
| |/ /
* | | Merge pull request #1767 from libgit2/win32-bigger-utf8-bufferVicent Martí2013-08-1310-86/+103
|\ \ \ | |/ / |/| | Bigger buffer for utf-8 parsing in win32
| * | Missed one path for path_as_utf8 typeRussell Belfer2013-08-131-1/+1
| | |
| * | Minor win32 fixes and improvementsRussell Belfer2013-08-134-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | This is just a bunch of small fixes that I noticed while looking at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking for an empty directory (not exiting loop asap), makes the dir name in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation, and fixes some slightly odd assumptions in the cl_getenv helper.
| * | Reintroduce type for UTF8 win32 path conversionsRussell Belfer2013-08-134-10/+11
| | |
| * | Rename git__win32_path fns to git_win32_pathRussell Belfer2013-08-137-25/+28
| | |
| * | Fix mingw cross-compile buildBen Straub2013-08-131-0/+1
| | |
| * | windows: Fuck meVicent Marti2013-08-132-1/+2
| | |
| * | windows: Require orderVicent Marti2013-08-133-3/+2
| | |
| * | windows: Missing renames.Vicent Marti2013-08-132-3/+3
| | |
| * | windows: Path conversion with better semanticsVicent Marti2013-08-138-49/+48
| | |
| * | Make utf-8 source strings unlimitedBen Straub2013-08-101-2/+2
| | |
| * | Fix 64-bit MSVC warningsBen Straub2013-08-101-2/+2
| | |
| * | Discriminate path-specific and general UTF-X conversionsBen Straub2013-08-089-31/+42
| | |
| * | Rename git_win_str_utf* to git_win32_path_utf*Ben Straub2013-08-078-26/+26
| | |
| * | Add typedefs for win32 utf-8 and utf-16 buffersBen Straub2013-08-079-48/+52
| | | | | | | | | | | | ...and normalize the signatures of the two conversion functions.
| * | Split UTF-16 and UTF-8 buffer sizes for win32Ben Straub2013-08-059-50/+51
| | | | | | | | | | | | | | | Also fixed up call-sites to use the correct buffer sizes, especially when converting to utf-8.
* | | Merge pull request #1775 from libgit2/ssh-default-userBen Straub2013-08-122-10/+51
|\ \ \ | | | | | | | | SSH username fixes
| * | | Include username in each credential typeCarlos Martín Nieto2013-08-122-10/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Key-based authentication also needs an username, so include it in each one. Also stop assuming a default username of "git" in the ssh transport which has no business making such a decision.
* | | | odb: free object data when id is ambiguousCarlos Martín Nieto2013-08-121-1/+3
| | | | | | | | | | | | | | | | | | | | By the time we recognise this as an ambiguous id, the object's data has been loaded into memory. Free it when returning EABMIGUOUS.
* | | | Merge pull request #1768 from arrbee/issue-1766-gitignore-weirdnessBen Straub2013-08-114-14/+35
|\ \ \ \ | |/ / / |/| | | Fix issue 1766 - bugs in managing ignore file lists
| * | | Improve and comment git_ignore__pop_dirRussell Belfer2013-08-091-9/+19
| | | | | | | | | | | | | | | | | | | | This just cleans up the improved logic for popping ignore dirs and documents why the complex behavior is needed.
| * | | Improve building ignore file listsRussell Belfer2013-08-094-14/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The routines to push and pop ignore files while traversing a directory had some issues. In particular, setting up the initial list would sometimes push an ignore file before it ought to be applied if the starting path was a directory containing an ignore file. Also, the pop function was not always matching the right part of the path and would fail to pop ignores from the list in some cases. This adds some tests that exercise a particular problematic case and then fixes the problems that I could find related to this. At some point, I'd like to isolate this ignore rule management code and rewrite it, but that's a larger project and right now, I'll opt to just try to fix the broken behaviors.
* | | | Merge pull request #1770 from ethomson/index_fuzzVicent Martí2013-08-094-3/+16
|\ \ \ \ | |/ / / |/| | | Fixes to safely reading the index
| * | | git_strndup fix when OOMEdward Thomson2013-08-081-0/+3
| | | |
| * | | Fixes to safely reading the indexEdward Thomson2013-08-083-3/+13
| | | | | | | | | | | | | | | | | | | | Avoid wrapping around extension size when reading, avoid walking off the end of the buffer when reading names.
* | | | Match against file with leading ! was too broadRussell Belfer2013-08-091-1/+2
| | | |
* | | | Revert PR #1462 and provide alternative fixRussell Belfer2013-08-094-53/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rolls back the changes to fnmatch parsing from commit 2e40a60e847d6c128af23e24ea7a8efebd2427da except for the tests that were added. Instead this adds couple of new flags that can be passed in when attempting to parse an fnmatch pattern. Also, this changes the pathspec match logic to special case matching a filename with a '!' prefix against a negative pattern. This fixes the build.
* | | | Merge pull request #1764 from ethomson/status_renames_from_rewritesRussell Belfer2013-08-092-44/+62
|\ \ \ \ | | | | | | | | | | Add rename from rewrites to status
| * | | | Add rename from rewrites to statusEdward Thomson2013-08-052-44/+62
| | |/ / | |/| | | | | | | | | | | | | | | | | | In git_diff_paired_foreach, temporarily resort the index->workdir diff list by index path so that we can track a rename in the workdir from head->index->workdir.
* | | | Merge pull request #1462 from yorah/fix/libgit2sharp-issue-379Russell Belfer2013-08-094-13/+46
|\ \ \ \ | | | | | | | | | | status: fix handling of filenames with special prefixes
| * | | | status: fix handling of filenames with special prefixesyorah2013-04-154-13/+46
| | | | | | | | | | | | | | | | | | | | Fix libgit2/libgit2sharp#379