Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-29tests: use legitimate object idsEdward Thomson
Use legitimate (existing) object IDs in tests so that we have the ability to turn on strict object validation when running tests.
2016-02-17win32: tests around handling forbidden pathsEdward Thomson
Introduce a repository that contains some paths that were illegal on PC-DOS circa 1981 (like `aux`, `con`, `com1`) and that in a bizarre fit of retrocomputing, remain illegal on some "modern" computers, despite being "new technology". Introduce some aspirational tests that suggest that we should be able to cope with trees and indexes that contain paths that would be illegal on the filesystem, so that we can at least diff them. Further ensure that checkout will not write a repository with forbidden paths.
2015-12-14Merge pull request #3521 from pks-t/blame-line-overflowEdward Thomson
Line count overflow in git_blame_hunk and git_blame__entry
2015-12-01diff: include commit message when formatting patchPatrick Steinhardt
When formatting a patch as email we do not include the commit's message in the formatted patch output. Implement this and add a test that verifies behavior.
2015-12-01blame: use size_t for line counts in git_blame_hunkPatrick Steinhardt
It is not unreasonable to have versioned files with a line count exceeding 2^16. Upon blaming such files we fail to correctly keep track of the lines as `git_blame_hunk` stores them in `uint16_t` fields. Fix this by converting the line fields of `git_blame_hunk` to `size_t`. Add test to verify behavior.
2015-11-25merge: handle conflicts in recursive base buildingEdward Thomson
When building a recursive merge base, allow conflicts to occur. Use the file (with conflict markers) as the common ancestor. The user has already seen and dealt with this conflict by virtue of having a criss-cross merge. If they resolved this conflict identically in both branches, then there will be no conflict in the result. This is the best case scenario. If they did not resolve the conflict identically in the two branches, then we will generate a new conflict. If the user is simply using standard conflict output then the results will be fairly sensible. But if the user is using a mergetool or using diff3 output, then the common ancestor will be a conflict file (itself with diff3 output, haha!). This is quite terrible, but it matches git's behavior.
2015-11-25merge tests: add complex recursive exampleEdward Thomson
2015-11-25merge: add recursive test with conflicting contentsEdward Thomson
2015-11-25merge: add recursive test with three merge basesEdward Thomson
2015-11-25merge: add a third-level recursive mergeEdward Thomson
2015-11-25merge: add a second-level recursive mergeEdward Thomson
2015-11-25merge: add simple recursive testEdward Thomson
Add a simple recursive test - where multiple ancestors exist and creating a virtual merge base from them would prevent a conflict.
2015-11-05submodule: test updating a submodule w/ a pathEdward Thomson
Test that `git_submodule_update` can handle a submodule that is freshly cloned and has a path differing from its name.
2015-11-02Add test caseVicent Marti
2015-10-22index: test that we round-trip nsecsEdward Thomson
Test that nanoseconds are round-tripped correctly when we read an index file that contains them. We should, however, ignore them because we don't understand them, and any new entries in the index should contain a `0` nsecs field, while existing preserving entries.
2015-09-18repo::reservedname: test a submodule updateEdward Thomson
Test an initial submodule update, where we are trying to checkout the submodule for the first time, and placing a file within the submodule working directory with the same name as the submodule (and consequently, the same name as the repository itself).
2015-06-22crlf tests: posix known-good dataEdward Thomson
A corpus of files checked out with Git (Linux, 1.9.1) to ensure that produce identical data when checking out using a CRLF filter.
2015-06-22crlf tests: windows known-good dataEdward Thomson
A corpus of files checked out with Git for Windows (2.4.1.windows.1) to ensure that we produce identical data when checking out using a CRLF filter.
2015-06-22crlf: include utf8 resources in master branchEdward Thomson
Include the UTF8 and UTF8 BOM tests in the master crlf test branch for completeness.
2015-06-22crlf: include additional test resourcesEdward Thomson
Include additional test data for CRLF tests: files with mixed line endings and binary files.
2015-05-31remote: apply insteadOf configuration.Patrick Steinhardt
A remote's URLs are now modified according to the url.*.insteadOf and url.*.pushInsteadOf configurations. This allows a user to replace URL prefixes by setting the corresponding keys. E.g. "url.foo.insteadOf = bar" would replace the prefix "bar" with the new prefix "foo".
2015-03-25Illustrate bad checkout on WindowsJacques Germishuys
2015-03-16Added tests to merge files and branches with whitespace problems and fixesJacques Germishuys
2015-02-03checkout test: ensure .gitattributes lifecycleEdward Thomson
The .gitattributes cache should not reload .gitattributes in the middle of checking out, only between checkout operations. Otherwise, we'll spend all our time stat'ing and read'ing the gitattributes.
2015-01-21checkout tests: nasty symlinksEdward Thomson
Symbolic links that abuse case insensitivity to write into .git.
2015-01-21Add files and tests with many UTF-8 chars and few UTF-8 charsLinquize
2015-01-08repo::init test: create hook symlinkEdward Thomson
Remove the hook symlink from the test resources, so that we can have a source tree that is easy to zip up and copy around on systems that don't support symlinks. Create it dynamically at test execution instead.
2014-12-23submodule init should resolve relative url pathsJameson Miller
Submodule init should handle relative paths in .gitmodules files and resolve these urls when updating the git config file.
2014-12-16checkout: disallow bad paths on HFSEdward Thomson
HFS filesystems ignore some characters like U+200C. When these characters are included in a path, they will be ignored for the purposes of comparison with other paths. Thus, if you have a ".git" folder, a folder of ".git<U+200C>" will also match. Protect our ".git" folder by ensuring that ".git<U+200C>" and friends do not match it.
2014-12-16checkout: disallow bad paths on win32Edward Thomson
Disallow: 1. paths with trailing dot 2. paths with trailing space 3. paths with trailing colon 4. paths that are 8.3 short names of .git folders ("GIT~1") 5. paths that are reserved path names (COM1, LPT1, etc). 6. paths with reserved DOS characters (colons, asterisks, etc) These paths would (without \\?\ syntax) be elided to other paths - for example, ".git." would be written as ".git". As a result, writing these paths literally (using \\?\ syntax) makes them hard to operate with from the shell, Windows Explorer or other tools. Disallow these.
2014-11-18Merge pull request #2654 from linquize/missing-objEdward Thomson
Fix missing object in tests/resources/crlf by changing the tail commit
2014-10-28revert tests: always use core.autocrlf=false in testsEdward Thomson
2014-10-27git_rebase_commit: drop already-picked commitsEdward Thomson
Already cherry-picked commits should not be re-included. If all changes included in a commit exist in the upstream, then we should error with GIT_EAPPLIED.
2014-10-27Introduce git_rebase to set up a rebase sessionEdward Thomson
Introduce `git_rebase` to set up a rebase session that can then be continued. Immediately, only merge-type rebase is supported.
2014-10-26Fix missing object in tests/resources/crlf by changing the tail commitLinquize
2014-10-13Introduce failing test for conflict filtering in indexEdward Thomson
2014-10-10Merge pull request #2473 from arthurschreiber/arthur/new-javascript-test-filesEdward Thomson
New test files for the javascript diff driver.
2014-10-10Merge pull request #2592 from libgit2/cmn/describeCarlos Martín Nieto
Implement git-describe
2014-10-10Update the javascript diff driver's function pattern.Arthur Schreiber
2014-10-10New test files for the javascript diff driver.Arthur Schreiber
2014-10-04config: Add test cases that have trailing spaces before comment charsLinquize
2014-08-18Revert "test: Remove symlinks from the source tree"Vicent Marti
This reverts commit 0dc54e149498bbd5de5e5ecc6006f9f5afb6588c.
2014-08-18test: Remove symlinks from the source treeVicent Marti
We don't really use this at all, and it breaks packaging in Windows.
2014-04-30tests: Add "describe" test repositorynulltoken
Built with the following script: #!/bin/sh test_tick () { sleep 10 } test_tick && echo one >file && git add file && git commit -m initial && one=$(git rev-parse HEAD) && git describe --always HEAD && test_tick && echo two >file && git add file && git commit -m second && two=$(git rev-parse HEAD) && test_tick && echo three >file && git add file && git commit -m third && test_tick && echo A >file && git add file && git commit -m A && test_tick && git tag -a -m A A && test_tick && echo c >file && git add file && git commit -m c && test_tick && git tag c && git reset --hard $two && test_tick && echo B >side && git add side && git commit -m B && test_tick && git tag -a -m B B && test_tick && git merge -m Merged c && merged=$(git rev-parse HEAD) && git reset --hard $two && test_tick && echo D >another && git add another && git commit -m D && test_tick && git tag -a -m D D && test_tick && git tag -a -m R R && test_tick && echo DD >another && git commit -a -m another && test_tick && git tag e && test_tick && echo DDD >another && git commit -a -m "yet another" && test_tick && git merge -m Merged $merged && test_tick && echo X >file && echo X >side && git add file side && git commit -m x
2014-04-16Merge pull request #2261 from jacquesg/format-patchVicent Marti
Support for format-patch
2014-04-15Added git_diff_stats test filesJacques Germishuys
2014-04-14Added cherry pick testsJacques Germishuys
2014-04-01Merge pull request #2178 from libgit2/rb/fix-short-idEdward Thomson
Fix git_odb_short_id and git_odb_exists_prefix bugs
2014-03-20Add `git_merge_status` to provide info about an upcoming mergeEdward Thomson
2014-03-10Add failing test for git_object_short_idJiri Pospisil