summaryrefslogtreecommitdiff
path: root/tests/merge/files.c
Commit message (Collapse)AuthorAgeFilesLines
* fileops: rename to "futils.h" to match function signaturesPatrick Steinhardt2019-07-201-1/+1
| | | | | | | | | Our file utils functions all have a "futils" prefix, e.g. `git_futils_touch`. One would thus naturally guess that their definitions and implementation would live in files "futils.h" and "futils.c", respectively, but in fact they live in "fileops.h". Rename the files to match expectations.
* treewide: remove use of C++ style commentsPatrick Steinhardt2018-07-131-1/+1
| | | | | | | | | C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit.
* merge: test CR/LF conflicts for CR/LF filesethomson/conflicts_crlfEdward Thomson2018-01-211-0/+48
| | | | | | Ensure that when the files being merged have CR/LF line endings that the conflict markers produced in the conflict file also have CR/LF line endings.
* merge tests: move expected data into own fileEdward Thomson2015-11-251-0/+1
|
* diff: don't feed large files to xdiffEdward Thomson2015-10-051-3/+3
|
* merge_file: treat large files as binaryEdward Thomson2015-10-051-0/+88
| | | | | | | | xdiff craps the bed on large files. Treat very large files as binary, so that it doesn't even have to try. Refactor our merge binary handling to better match git.git, which looks for a NUL in the first 8000 bytes.
* merge_files: don't add trailing newlinesEdward Thomson2015-07-071-0/+39
| | | | | When invoked with three files that each lack a trailing newline, the merge result should also lack a trailing newline.
* Collapse whitespace flags into git_merge_file_flags_tJacques Germishuys2015-03-161-2/+2
|
* Added tests to merge files and branches with whitespace problems and fixesJacques Germishuys2015-03-161-0/+76
|
* Introduce git_merge_file for consumersEdward Thomson2014-03-201-0/+175