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-11-05Change the git_branch_iterator_new and git_branch_next definitions to use ↵Arthur Schreiber
git_branch_t.
2013-11-05branch: move from foreach to an iteratorCarlos Martín Nieto
Create a git_branch_iterator type which is equivalent to the foreach but lets us write loops instead of callbacks. Since the introduction of git_reference_shorthand(), the added value of passing the name is reduced.
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-06-17branch: More obvious semantics in `foreach`Vicent Marti
2013-06-17ref: free the last ref when cancelling git_branch_foreach()yorah
Also fixed an assert typo on nulltoken's HEAD
2013-05-30...Aaaand this worksVicent Marti
2013-05-28Liike thisVicent Marti
2013-05-11Merge pull request #1385 from carlosmn/refs-iterEdward Thomson
Introduce a refs iterator
2013-05-11Move a couple more functions to use iteratorsCarlos Martín Nieto
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-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-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: 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-19Fix win64 warningsRussell Belfer
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-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-18Several warnings detected by static code analyzer fixedArkadiy Shapkin
Implicit type conversion argument of function to size_t type Suspicious sequence of types castings: size_t -> int -> size_t Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)' Unsigned type is never < 0
2013-03-07immutable references and a pluggable ref databaseEdward Thomson
2013-02-22branch: Make git_branch_remote_name() cope with orphaned headsnulltoken
2013-02-11Merge pull request #1190 from nulltoken/topic/reset-pathsRussell Belfer
reset: Allow the selective reset of pathspecs
2013-02-11Teach remote branch to return its remoteJameson Miller
2013-02-05Fix MSVC compilation warningsnulltoken
Fix #1308
2013-01-25Added git_branch_name().Sebastian Bauer
This is a convenience function to get the branch name of a given ref. The returned branch name is compatible with the name that can be supplied e.g. to git_branch_lookup(). That is, the prefixes "refs/heads" or "refs/remotes" are omitted. Also added a new test for testing the new function.
2013-01-17branch: Introduce git_branch_tracking_name()nulltoken
2013-01-17Fix indentationsnulltoken
2013-01-09update copyrightsEdward Thomson
2012-11-28tracking: fix retrieval of the tracking ref of branch with empty merge ↵nulltoken
and/or remote entry
2012-11-28More external API cleanupVicent Marti
Conflicts: src/branch.c tests-clar/refs/branches/create.c
2012-11-28Rename ref and reflog apis for consistencyBen Straub
2012-11-12repository: Refine repository_head() error reportnulltoken
2012-11-11create FETCH_HEAD specially instead of as a ref fileEdward Thomson
2012-10-25config: introduce git_config_rename_section()nulltoken
2012-10-25branch: rename config section upon movingnulltoken
2012-10-25branch: remove config section upon deletionnulltoken
2012-10-20errors: deploy GIT_EORPHANEDHEAD usagenulltoken
2012-10-19branch: allow deletion of branch when HEAD's missingnulltoken
2012-10-11branches: propagate EEXISTS upon creationnulltoken
2012-10-08branch: deploy git_branch_is_head()nulltoken
2012-10-07branch: introduce git_branch_is_head()nulltoken
2012-09-14refspec: No remote tracking ref from a fetchspec-less remotenulltoken
2012-08-28Merge branch 'branch-delete-ref' into developmentVicent Marti
Conflicts: include/git2/refs.h
2012-08-27branch: reduce code duplicationnulltoken
2012-08-27branch: Change `git_branch_delete` to take a refbranch-delete-refVicent Marti
2012-07-27branch: Add `repository` argument to `create`Vicent Marti
Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
2012-07-24branch: enforce git_branch_delete() parameter checkingnulltoken
2012-07-24branch: introduce git_branch_tracking()nulltoken
2012-07-24branch: make git_branch_move() reference basednulltoken
2012-07-24branch: introduce git_branch_lookup()nulltoken
2012-07-24branch: change git_branch_create() to make it return a referencenulltoken