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
2013-09-17No such thing as an orphan branchCarlos Martín Nieto
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
2013-09-11odb: Teach loose backend to return EAMBIGUOUSnulltoken
2013-08-28Merge pull request #1805 from libgit2/threading-packed-loadVicent Martí
Thread safety for the refdb_fs
2013-08-26refs: add git_reference_is_tagNikolai Vladimirov
2013-08-23Fix commentRussell Belfer
2013-08-21Don't try to pack symbolic refsRussell Belfer
If there were symbolic refs among the loose refs then the code to create packed-refs would fail trying to parse the OID out of them (where Git just skips trying to pack them). This fixes it.
2013-08-07Add long-file-name branch to test repoBen Straub
2013-07-13revparse: Don't return a reference when asked for a git objectnulltoken
Fix #1722
2013-06-17ref: free the last ref when cancelling git_branch_foreach()yorah
Also fixed an assert typo on nulltoken's HEAD
2013-06-13Fix Windows warningsRussell Belfer
This fixes problems with missing function prototypes and 64-bit data issues on Windows.
2013-06-10Reorganize diff and add basic diff driverRussell Belfer
This is a significant reorganization of the diff code to break it into a set of more clearly distinct files and to document the new organization. Hopefully this will make the diff code easier to understand and to extend. This adds a new `git_diff_driver` object that looks of diff driver information from the attributes and the config so that things like function content in diff headers can be provided. The full driver spec is not implemented in the commit - this is focused on the reorganization of the code and putting the driver hooks in place. This also removes a few #includes from src/repository.h that were overbroad, but as a result required extra #includes in a variety of places since including src/repository.h no longer results in pulling in the whole world.
2013-06-03Merge pull request #1624 from libgit2/vmg/full-ref-iteratorVicent Martí
Breaking RefDB changes
2013-05-31Merge pull request #1559 from carlosmn/ref-shorthandVicent Martí
Introduce git_reference_shorthand
2013-05-28Liike thisVicent Marti
2013-05-16revparse: Make revparse_ext() return git_reference from names as wellnulltoken
2013-05-16revparse: Introduce git_revparse_ext()nulltoken
Expose a way to retrieve, along with the target git_object, the reference pointed at by some revparse expression (`@{<-n>}` or `<branchname>@{upstream}` syntax).
2013-05-16Fix trailing whitespacesnulltoken
2013-05-11Fix refdb iteration early termination bugRussell Belfer
There was a problem found in the Rugged test suite where the refdb_fs_backend__next function could exit too early in some very specific hashing patterns for packed refs. This ports the Rugged test to libgit2 and then fixes the bug.
2013-05-11Merge pull request #1385 from carlosmn/refs-iterEdward Thomson
Introduce a refs iterator
2013-05-11refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto
Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
2013-05-11Remove outdated testCarlos Martín Nieto
Selecting wether to list loose or packed references is not something we want to support anymore, so remove a test for this.
2013-05-11Make sure the ref iterator works in an repo without physical presenceCarlos Martín Nieto
2013-05-11refs: introduce an iteratorCarlos Martín Nieto
This allows us to get a list of reference names in a loop instead of callbacks.
2013-05-10Fix some memory leaksnulltoken
2013-05-08Introduce git_reference_shorthandCarlos Martín Nieto
Generate a shorthand name out of the full refname.
2013-05-06git_branch_set_upstream with local branchesNikolai Vladimirov
Currently git_branch_set_upstream when passed a local branch creates invalid configuration, for ex. if we setup branch 'tracking_master' to track local 'master' libgit2 generates the following config ``` [branch "track_master"] remote = . merge = .refs/heads/track_master ``` The merge value is invalid and calling git_branch_upstream on 'tracking_master' results in invalid reference error. It should do: ``` [branch "track_master"] remote = . merge = refs/heads/master ```
2013-05-06Merge pull request #1526 from arrbee/cleanup-error-return-without-msgVicent Martí
Make sure error messages are set for most error returns
2013-05-02refdb_fs: do not require peeled packed refs to be tagsJeff King
Older versions of git would only write peeled entries for items under refs/tags/. Newer versions will write them for all refs, and we should be prepared to handle that.
2013-05-01Set error message for branch functionsRussell Belfer
There were a couple of places where an error was being returned from branch related code but no error message was being set.
2013-04-20remote: allow querying for refspecsCarlos Martín Nieto
Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs from the remote and rename the refspec-adding functions to a less silly name. Use this instead of the vector index hacks in the tests.
2013-04-20remote: handle multiple refspecsCarlos Martín Nieto
A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
2013-04-20alloc doesn't take a refdb; git_refdb_free nicely in the testsEdward Thomson
2013-04-16git_revision -> git_revspecVicent Marti
2013-04-16Is this crazy?Vicent Marti
2013-04-16Merge remote-tracking branch 'ben/unified-revparse' into developmentVicent Marti
2013-04-15Change git_revparse to output git_object pointersBen Straub
This will probably prevent many lookup/free operations in calling code.
2013-04-15Redeploy git_revparse_single.Ben Straub
2013-04-11Merge pull request #1450 from carlosmn/branch-upstreamVicent Martí
Branch upstream configuration
2013-04-11branch: add more upstream configuration managementCarlos Martín Nieto
Add functions to set and unset the upstream configuration to complement the getter we already have.
2013-04-09Deprecate git_revparse_single and _rangelikeBen Straub
2013-04-08Implement unified git_revparseBen Straub
2013-04-07test: Add missing NULLsVicent Marti
2013-04-07Merge remote-tracking branch 'gnprice/revwalk' into developmentVicent Marti
2013-04-07revparse: Parse range-like syntaxGreg Price
Signed-off-by: Greg Price <price@mit.edu>
2013-03-31tag: Fix parsing when no tagger nor messagenulltoken
2013-03-31branch: refactor git_branch_remote_nameCarlos Martín Nieto
Return the size we'd need to write to instead of simply an error. Split the function into two to be used later by the upstream configuration functions.
2013-03-30branch: rename 'tracking' to 'upstream'Carlos Martín Nieto
The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
2013-03-15Fix various build warningsRussell Belfer
This fixes various build warnings on Mac and Windows (64-bit).
2013-03-07immutable references and a pluggable ref databaseEdward Thomson
2013-03-07refs: explicitly catch leading slashesCarlos Martín Nieto
It's somewhat common to try to write "/refs/tags/something". There is no easy way to catch it during the main body of the function, as there is no way to distinguish whether it's a leading slash or a double slash somewhere in the middle. Catch this at the beginning so we don't trigger the assert in is_all_caps_and_underscore().