summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* tree: Rename `entry_copy` to `entry_dup`tree-entry-by-pathVicent Marti2012-06-291-2/+2
|
* tree: Bring back `entry_bypath`Vicent Marti2012-06-291-14/+53
| | | | Smaller, simpler, faster.
* indexer: don't use '/objects/pack/' unconditionallyCarlos Martín Nieto2012-06-281-2/+2
| | | | | Not everyone who indexes a packfile wants to put it in the standard git repository location.
* Merge pull request #785 from nulltoken/topic/refs-fromglobVicent Martí2012-06-251-1/+30
|\ | | | | Topic/refs fromglob
| * references: introduce git_reference_foreach_glob()nulltoken2012-06-221-1/+30
| |
* | amigaos: CleanupVicent Marti2012-06-221-39/+1
| |
* | Merge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaosVicent Marti2012-06-223-1/+10
|\ \ | |/ |/|
| * Updates from comments on OS4 compatibility pull request ↵Chris Young2012-06-141-2/+0
| | | | | | | | http://github.com/libgit2/libgit2/pull/766
| * Merge remote-tracking branch 'source/development' into developmentChris Young2012-06-137-24/+167
| |\
| * | Fix gethostbyname compatibilityChris Young2012-06-091-5/+1
| | |
| * | Generic needs compat filesChris Young2012-06-081-1/+1
| | |
| * | OS4 compatibilityChris Young2012-06-081-0/+2
| | |
| * | Fix double-defines when using GIT_OLD_ERRORSChris Young2012-06-071-1/+3
| | |
| * | Network byte order is big-endian - the way it should be :)Chris Young2012-06-071-0/+8
| | |
| * | Merge remote-tracking branch 'source/development' into update-testChris Young2012-06-0737-1182/+3774
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merging main libgit2! Conflicts: CMakeLists.txt src/unix/map.c
| * | | Required include for OS4 to typedef int64_tChris Young2012-06-051-0/+3
| | | |
* | | | branch: drop git_branch_list()nulltoken2012-06-211-24/+0
| | | |
* | | | branch: add git_branch_foreach()nulltoken2012-06-211-0/+25
| | | |
* | | | Merge pull request #775 from arrbee/fix-index-filemodesVicent Martí2012-06-191-0/+29
|\ \ \ \ | | | | | | | | | | Make index add/append support core.filemode flag
| * | | | Nicer constantRussell Belfer2012-06-191-1/+1
| | | | |
| * | | | Make index add/append support core.filemode flagRussell Belfer2012-06-191-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes git_index_add and git_index_append to behave more like core git, preserving old filemode data in the index when adding and/or appending with core.filemode = false. This also has placeholder support for core.symlinks and core.ignorecase, but those flags are not implemented (well, symlinks has partial support for preserving mode information in the same way that git does, but it isn't tested).
* | | | | message: Expose git_message_prettify()nulltoken2012-06-194-4/+46
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git_commit() and git_tag() no longer prettify the message by default. This has to be taken care of by the caller. This has the nice side effect of putting the caller in position to actually choose to strip the comments or not.
* | | | Merge pull request #753 from nulltoken/topic/merge-base-manyVicent Martí2012-06-181-0/+10
|\ \ \ \ | |_|_|/ |/| | | Expose git_merge_base_many()
| * | | merge: Expose git_merge_base_many()nulltoken2012-06-071-0/+10
| | | |
* | | | Expose git_refspec_parse()Carlos Martín Nieto2012-06-121-0/+8
| | | | | | | | | | | | | | | | | | | | This function has been available for some time, but never in a header. Expose it so we can use it from outside the library.
* | | | Minor fixes, cleanups, and clarificationsRussell Belfer2012-06-081-22/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are three actual changes in this commit: 1. When the trailing newline of a file is removed in a diff, the change will now be reported with `GIT_DIFF_LINE_DEL_EOFNL` passed to the callback. Previously, the `ADD_EOFNL` constant was given which was just an error in my understanding of when the various circumstances arose. `GIT_DIFF_LINE_ADD_EOFNL` is deprecated and should never be generated. A new newline is simply an `ADD`. 2. Rewrote the `diff_delta__merge_like_cgit` function that contains the core logic of the `git_diff_merge` implementation. The new version doesn't actually have significantly different behavior, but the logic should be much more obvious, I think. 3. Fixed a bug in `git_diff_merge` where it freed a string pool while some of the string data was still in use. This led to `git_diff_print_patch` accessing memory that had been freed. The rest of this commit contains improved documentation in `diff.h` to make the behavior and the equivalencies with core git clearer, and a bunch of new tests to cover the various cases, oh and a minor simplification of `examples/diff.c`.
* | | | Fix filemode comparison in diffsRussell Belfer2012-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | File modes were both not being ignored properly on platforms where they should be ignored, nor be diffed consistently on platforms where they are supported. This change adds a number of diff and status filemode change tests. This also makes sure that filemode-only changes are included in the diff output when they occur and that filemode changes are ignored successfully when core.filemode is false. There is no code that automatically toggles core.filemode based on the capabilities of the current platform, so the user still needs to be careful in their .git/config file.
* | | | misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-1/+1
| | | |
* | | | Merge pull request #669 from nulltoken/topic/resetVicent Martí2012-06-073-0/+51
|\ \ \ \ | | | | | | | | | | Add git_reset()
| * | | | Add git_reset()nulltoken2012-06-073-0/+51
| | | | | | | | | | | | | | | | | | | | Currently supports Soft and Mixed modes.
* | | | | Merge pull request #684 from benstraub/rev-parseVicent Martí2012-06-072-0/+37
|\ \ \ \ \ | |_|_|_|/ |/| | | | Rev parse
| * | | | Merge branch 'development' into rev-parseBen Straub2012-06-0528-278/+333
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/util.h tests-clar/refs/branches/listall.c
| * | | | | Rev-parse: @{time} syntax.Ben Straub2012-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported date.c (for approxidate_careful) from git.git revision aa39b85. Trimmed out the parts we're not using.
| * | | | | Adding comment documentation for rev-parse api.Ben Straub2012-05-111-3/+17
| | | | | |
| * | | | | First stab at implementation of rev-parse.Ben Straub2012-05-111-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version supports refspecs of these kinds: - Full & partial SHAs - Output from "git describe" - "/refs/heads/master" (full ref names) - "master" (partial ref names) - "FETCH_HEAD" (named heads)
* | | | | | Merge pull request #704 from nulltoken/topic/blob_fromchunksVicent Martí2012-06-071-0/+42
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Add the ability to create blob given a provider of chunks of bytes
| * | | | | blob: add git_blob_create_fromchunks()nulltoken2012-06-071-0/+42
| | |_|/ / | |/| | |
* | | | | Merge pull request #697 from carlosmn/sslVicent Martí2012-06-052-0/+10
|\ \ \ \ \ | |_|_|/ / |/| | | | Add HTTPS support
| * | | | ssl: allow skipping the server certificate checkCarlos Martín Nieto2012-05-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it's useful not to perform the check. Allow it to be configurable.
| * | | | ssl: check certificates against the system's trusted CAsCarlos Martín Nieto2012-05-191-0/+1
| | | | |
* | | | | refspec: expose the force update specifier through git_refspec_force() accessornulltoken2012-05-301-0/+8
| |/ / / |/| | |
* | | | Fix spelling errors.Bruce Mitchener2012-05-1914-28/+28
|/ / /
* | | libgit2 v0.17.0 "Lord of Diffstruction"Vicent Marti2012-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Welcome to yet another libgit2 release, this one being the biggest we've shipped so far. Highlights on this release include diff, branches, notes and submodules support. The new diff API is shiny and powerful. Check it out. Apologies, one more time, to all the early adopters for the breaking API changes. We've been iterating on the error handling for the library until we reached its current state, which we believe it's significantly more usable both for normal users and for developers of bindings to other languages. Also, we've renamed a few legacy calls to ensure that the whole external API uses a consistent naming scheme. As always, check the API docs for the full list of new API calls and backwards-incompatible changes. http://libgit2.github.com/libgit2/ Changelog of new features follows: Attributes: - Added function macros to check attribute values instead of having to manually compare them - Added support for choosing the attribute loading order (workdir files vs index) and to skip the systems' default `.gitattributes` - Fixed issues when fetching attribute data on bare repositories Blob: - Added support for creating blobs from any file on disk (not restricted to the repository's working directory) - Aded support for smudge filters when writing blobs to the ODB - So far only CRLF normalization is available Branches: - Added a high-level branch API: - git_branch_create - git_branch_delete - git_branch_list - git_branch_move Commit: - Commit messages are now filtered to match Git rules (stripping comments and adding proper whitespacing rules) Config: - Added support for setting and getting multivars - Added `git_config_get_mapped` to map the value of a config variable based on its defaults Diff: - Added full diff API: - tree to tree - index to tree - workdir to index - workdir to tree - blob to blob - Added helper functions to print the diffs as valid patchfiles Error handling: - New design for the error handling API, taking into consideration the requirements of dynamic languages Indexer: - Added streaming packfile indexer Merge: - Added support for finding the merge base between two commits Notes: - Full git-notes support: - git_note_read - git_note_message/git_note_oid - git_note_create - git_note_remove - git_note_free - git_note_foreach References: - Added `git_reference_name_to_oid` helper to resolve a reference to its final OID - Added `git_reference_cmp` to compare two references with a stable order Remotes: - Added support for writing and saving remotes - `git_remote_add` - `git_remote_save` - Setters for all the attributes of a remote - Switched remote download to the new streaming packfile indexer - Fixed fetch on HTTP and Git under Windows - Added `git_remote_supported_url` helper to check if a protocol can be accessed by the library - Added `git_remote_list` Repository: - Made `git_repository_open` smarter when finding the `.git` folder. - Added `git_repository_open_ext` with extra options when opening a repository Revwalk: - Added support for pushing/hiding several references through a glob - Added helper to push/hide the current HEAD to the walker - Added helper to push/hide a single reference to the walker Status: - Greatly improved Status implementation using the new `diff` code as a backend Submodules: - Added a partial submodules API to get information about a submodule and list all the submodules in a repository - git_submodule_foreach - git_submodule_lookup Tag: - Added `git_tag_peel` helper to peel a tag to its pointed object - Tag messages are now filtered to match Git rules (stripping comments and adding proper whitespacing rules) Tree: - Killed the old `git_tree_diff` API, which is replaced by the new diff code. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* | | errors: Rename error codesbreaking-changesVicent Martí2012-05-188-18/+19
| | |
* | | errors: Rename the generic return codesVicent Martí2012-05-1821-137/+173
| | |
* | | Properly tag all `enums` with a `_t`Vicent Martí2012-05-185-26/+29
| | |
* | | refs: git_reference_listall -> git_reference_listVicent Martí2012-05-181-1/+1
| | |
* | | errors: Remove old commentsVicent Martí2012-05-181-13/+0
| | |
* | | global: Change parameter ordering in APIVicent Martí2012-05-182-28/+28
| | | | | | | | | | | | Consistency is good.
* | | notes: make git_note_foreach() callback signature easier to cope with from a ↵nulltoken2012-05-161-1/+12
| | | | | | | | | | | | binding perspective