summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | Diff API cleanupRussell Belfer2013-10-1521-470/+532
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lays groundwork for separating formatting options from diff creation options. This groups the formatting flags separately from the diff list creation flags and reorders the options. This also tweaks some APIs to further separate code that uses patches from code that just looks at git_diffs.
| | * | | | | | Rename diff objects and split patch.hRussell Belfer2013-10-1136-1023/+1057
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes no functional change to diff but renames a couple of the objects and splits the new git_patch (formerly git_diff_patch) into a new header file.
| * | | | | | | Implement `git_odb_object_dup`Vicent Marti2013-10-222-0/+21
| | | | | | | |
| * | | | | | | Merge pull request #1903 from ethomson/sshVicent Martí2013-10-214-22/+39
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Allowed credential types should be a bitfield
| | * | | | | | | Allowed credential types should be a bitfieldEdward Thomson2013-10-214-22/+39
| |/ / / / / / /
| * | | | | | | Merge pull request #1900 from haneefmubarak/patch-1Vicent Martí2013-10-181-13/+13
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | license clarification + formatting all over
| | * | | | | | | slightly clarified the "license" portion of `README.md" + formatting all overHaneef Mubarak2013-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | fixed typo `can can` -> `can`
| | * | | | | | | slightly clarified the "license" portion of `README.md" + formatting all overHaneef Mubarak2013-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | added the second change suggested by @nulltoken (with two extra words :) )
| | * | | | | | | slightly clarified the "license" portion of `README.md" + formatting all overHaneef Mubarak2013-10-171-13/+13
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are commercial open source applications, hence proprietary seems to be a better term. Also: - Trimmed header `=`'s to match text length - made libgit2 stand out everywhere - pretty printing links - irc link for those with the correct setup
| * | | | | | | Merge pull request #1702 from ethomson/checkout_mergeVicent Martí2013-10-1611-33/+1982
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Checkout merge
| | * | | | | | | Move path prefixed help to path.hEdward Thomson2013-10-162-38/+41
| | | | | | | | |
| | * | | | | | | Move functions in checkout_conflicts to checkout.cEdward Thomson2013-10-163-729/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seemed exceptionally silly to have a split there where no split needed to be.
| | * | | | | | | Two-step conflict checkout (load / perform)Edward Thomson2013-10-164-71/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move conflict handling into two steps: load the conflicts and then apply the conflicts. This is more compatible with the existing checkout implementation and makes progress reporting more sane.
| | * | | | | | | Honor UPDATE_ONLY bit when checking out conflictsEdward Thomson2013-10-164-5/+68
| | | | | | | | |
| | * | | | | | | Fix warning, fix memory leakEdward Thomson2013-10-161-8/+9
| | | | | | | | |
| | * | | | | | | Don't overwrite ~ files checking out conflictsEdward Thomson2013-10-162-30/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a D/F conflict or rename 2->1 conflict occurs, we write the file sides as filename~branchname. If a file with that name already exists in the working directory, write as filename~branchname_0 instead. (Incrementing 0 until a unique filename is found.)
| | * | | | | | | Get rid of some quick hacksEdward Thomson2013-10-161-27/+21
| | | | | | | | |
| | * | | | | | | checkout rename conflictsEdward Thomson2013-10-162-2/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename conflict tests for checkout conflicts, don't suffix filenames when checking out with USE_OURS or USE_THEIRS
| | * | | | | | | Prevent checkout_tree when conflicts exist, clear NAME on checkout treeEdward Thomson2013-10-162-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent checkout tree when unresolved changes exist (unless FORCE flag is specified). Clear NAME table when checking out, to avoid checkout_conflicts from attempting to manipulate it. Ensure that NAME is also cleared at reset.
| | * | | | | | | checkout (from index) can write conflictsEdward Thomson2013-10-166-47/+687
| | | | | | | | |
| | * | | | | | | tests for checkout index with conflictsEdward Thomson2013-10-164-0/+460
| |/ / / / / / /
| * | | | | | | Merge pull request #1562 from libgit2/cmn/refs-namespace-lookupVicent Martí2013-10-112-1/+19
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Provide the user with a more useful error code when a looking up a reference which name points to a namepace
| | * | | | | | | futils: return GIT_ENOTFOUND when trying to read a directoryCarlos Martín Nieto2013-10-112-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets the reference code return not-found when the user asks to look up a reference when in fact they pass a namespace.
| * | | | | | | | Merge pull request #1898 from arthurschreiber/patch-2Ben Straub2013-10-101-1/+1
| |\ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | | Fix a typo in the rpm build instructions.
| | * | | | | | | Fix a typo in the rpm build instructions.Arthur Schreiber2013-10-111-1/+1
| |/ / / / / / /
| * | | | | | | After iconv init reset ref normalize errorRussell Belfer2013-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The iconv init was accidentally clearing the default error state during reference normalization. This resets so that normalization errors will be detected correctly.
| * | | | | | | Merge pull request #1886 from libgit2/precompose-utf8Vicent Martí2013-10-0852-537/+954
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add support for core.precomposeunicode on Mac
| | * | | | | | | Rename new fn to git_repository_reinit_filesystemRussell Belfer2013-10-085-11/+12
| | | | | | | | |
| | * | | | | | | Make reference lookups apply precomposeunicodeRussell Belfer2013-10-089-64/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before these changes, looking up a reference would return the same precomposed or decomposed form of the reference name that was used to look it up, so on MacOS which ignores the difference between the two, a single reference could be looked up either way and git_reference_name would return the form of the name that was used to look it up! This change makes lookup always return the precomposed name if core.precomposeunicode is set regardless of which version was used to look it up. The reference iterator was already returning the precomposed form from earlier work. This also updates the CMakeLists.txt rules for enabling iconv usage because the clar tests for this code were actually not being activated properly with the old version. Finally, this moves git_repository_reset_filesystem from include/ git2/repository.h to include/git2/sys/repository.h since it is not really a function that normal library users should have to think about very often.
| | * | | | | | | Case sensitivity issues on LinuxRussell Belfer2013-10-082-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A couple of tests were actually dealing incorrectly with case sensitivity issues on Linux because they were relying on having core.ignorecase set to true. Now that the fixture initialization sets the case sensitivity to be accurate for the platform, it exposed bugs in these tests.
| | * | | | | | | More filemode cleanups for FAT on MacOSRussell Belfer2013-10-0821-201/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This cleans up some additional issues. The main change is that on a filesystem that doesn't support mode bits, libgit2 will now create new blobs with GIT_FILEMODE_BLOB always instead of being at the mercy to the filesystem driver to report executable or not. This means that if "core.filemode" lies and claims that filemode is not supported, then we will ignore the executable bit from the filesystem. Previously we would have allowed it. This adds an option to the new git_repository_reset_filesystem to recurse through submodules if desired. There may be other types of APIs that would like a "recurse submodules" option, but this one is particularly useful. This also has a number of cleanups, etc., for related things including trying to give better error messages when problems come up from the filesystem. For example, the FAT filesystem driver on MacOS appears to return errno EINVAL if you attempt to write a filename with invalid UTF-8 in it. We try to capture that with a better error message now.
| | * | | | | | | Add git_repository_reset_filesystem and fix testsRussell Belfer2013-10-049-53/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a repository is transferred from one file system to another, many of the config settings that represent the properties of the file system may be wrong. This adds a new public API that will refresh the config settings of the repository to account for the change of file system. This doesn't do a full "reinitialize" and operates on a existing git_repository object refreshing the config when done. This commit then makes use of the new API in clar as each test repository is set up. This commit also has a number of other clar test fixes where we were making assumptions about the type of filesystem, either based on outdated config data or based on the OS instead of the FS.
| | * | | | | | | More cleanups to remove WIN assumptionsRussell Belfer2013-10-033-25/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This cleans up more of the test suite to check actual filesystem behavior instead of relying on Windows vs. Mac vs. Linux to test.
| | * | | | | | | Update repo init with fewer platform assumptionsRussell Belfer2013-10-032-60/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The repo init code was assuming Windows == no filemode, and Mac or Windows == no case sensitivity. Those assumptions are not consistently true depending on the mounted file system. This is a first step to removing those assumptions. It focuses on the repo init code and the tests of that code. There are still many other tests that are broken when those assumptions don't hold true, but this clears up one area of the code. Also, this moves the core.precomposeunicode logic to be closer to the current logic in core Git where it will be set to true on any filesystem where composed unicode is decomposed when read back.
| | * | | | | | | Clean up annoying warningsRussell Belfer2013-10-034-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The indexer code was generating warnings on Windows 64-bit. I looked closely at the logic and was able to simplify it a bit. Also this fixes some other Windows and Linux warnings.
| | * | | | | | | Wrap iconv stuff and write testsRussell Belfer2013-10-034-59/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a simple wrapper around the iconv APIs and uses it instead of the old code that was inlining the iconv stuff. This makes it possible for me to test the iconv logic in isolation. A "no iconv" version of the API was defined with macros so that I could have fewer ifdefs in the code itself.
| | * | | | | | | Simplify git_path_is_empty_dir implementationRussell Belfer2013-10-033-55/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies git_path_is_empty_dir on both Windows (getting rid of git_buf allocation inside the function) and other platforms (by just using git_path_direach), and adds tests for the function, and uses the function to simplify some existing tests.
| | * | | | | | | Add to Git authors who have agreed to relicenseRussell Belfer2013-10-032-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In email, Torsten Bögershausen agreed that we could use his code from core Git in libgit2 under the modified license. Also, since his work is the basis for much of the precompose unicode support, I have added him to the AUTHORS file as well.
| | * | | | | | | Initial iconv hookup for precomposed unicodeRussell Belfer2013-10-0315-217/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hooks up git_path_direach and git_path_dirload so that they will take a flag indicating if directory entry names should be tested and converted from decomposed unicode to precomposed form. This code will only come into play on the Apple platform and even then, only when certain types of filesystems are used. This involved adding a flag to these functions which involved changing a lot of places in the code. This was an opportunity to do a bit of code cleanup here and there, for example, getting rid of the git_futils_cleanupdir_r function in favor of a simple flag to git_futils_rmdir_r to not remove the top level entry. That ended up adding depth tracking during rmdir_r which led to a safety check for infinite directory recursion. Yay. This hasn't actually been tested on the Mac filesystems where the issue occurs. I still need to get test environment for that.
| | * | | | | | | Put hooks in place for precompose in dirload fnRussell Belfer2013-10-037-12/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't actual do string precompose but it puts the hooks in place into the iterators and the git_path_dirload function so that the actual precompose work is ready to go.
| | * | | | | | | Add check if we need to precompose unicode on MacRussell Belfer2013-10-032-32/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds initialization of core.precomposeunicode to repo init on Mac. This is necessary because when a Mac accesses a repo on a VFAT or SAMBA file system, it will return directory entries in decomposed unicode even if the filesystem entry is precomposed. This also removes caching of a number of repo properties from the repo init pipeline because these are properties of the specific filesystem on which the repo is created, not of the system as a whole.
| * | | | | | | | Merge pull request #1895 from libgit2/winhttp-acceptVicent Martí2013-10-082-3/+13
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | WinHTTP: set Accept header for POSTs
| | * | | | | | | | Combine WinHTTP API callsBen Straub2013-10-081-13/+7
| | | | | | | | | |
| | * | | | | | | | Add Assembla unit testBen Straub2013-10-081-0/+6
| | | | | | | | | |
| | * | | | | | | | WinHTTP: set Accept header for POSTsBen Straub2013-10-081-1/+11
| |/ / / / / / / /
| * | | | | | | | Merge pull request #1894 from libgit2/cmn/tree-rawVicent Martí2013-10-083-4/+19
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | tree: allow retrieval of raw attributes
| | * | | | | | | | tree: allow retrieval of raw attributesCarlos Martín Nieto2013-10-083-4/+19
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a tool needs to recreate the tree object (for example an interface to another VCS), it needs to use the raw attributes, forgoing any normalization.
| * | | | | | | | Merge pull request #1890 from libgit2/multiple-initVicent Martí2013-10-052-35/+73
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Multiple init
| | * | | | | | | | Don't use git_atomic as an integerBen Straub2013-10-041-4/+5
| | | | | | | | | |
| | * | | | | | | | Use InterlockedCompareExchange for the lockPhilip Kelley2013-10-041-49/+18
| | | | | | | | | |