Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-05 | Change the git_branch_iterator_new and git_branch_next definitions to use ↵ | Arthur Schreiber | |
git_branch_t. | |||
2013-11-05 | branch: move from foreach to an iterator | Carlos 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-17 | No such thing as an orphan branch | Carlos 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-17 | branch: More obvious semantics in `foreach` | Vicent Marti | |
2013-06-17 | ref: free the last ref when cancelling git_branch_foreach() | yorah | |
Also fixed an assert typo on nulltoken's HEAD | |||
2013-05-30 | ...Aaaand this works | Vicent Marti | |
2013-05-28 | Liike this | Vicent Marti | |
2013-05-11 | Merge pull request #1385 from carlosmn/refs-iter | Edward Thomson | |
Introduce a refs iterator | |||
2013-05-11 | Move a couple more functions to use iterators | Carlos Martín Nieto | |
2013-05-11 | refs: remove the OID/SYMBOLIC filtering | Carlos 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-06 | git_branch_set_upstream with local branches | Nikolai 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-01 | Set error message for branch functions | Russell 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-20 | remote: handle multiple refspecs | Carlos 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-19 | Fix win64 warnings | Russell Belfer | |
2013-04-11 | branch: add more upstream configuration management | Carlos Martín Nieto | |
Add functions to set and unset the upstream configuration to complement the getter we already have. | |||
2013-03-31 | branch: refactor git_branch_remote_name | Carlos 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-30 | branch: 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-18 | Several warnings detected by static code analyzer fixed | Arkadiy 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-07 | immutable references and a pluggable ref database | Edward Thomson | |
2013-02-22 | branch: Make git_branch_remote_name() cope with orphaned heads | nulltoken | |
2013-02-11 | Merge pull request #1190 from nulltoken/topic/reset-paths | Russell Belfer | |
reset: Allow the selective reset of pathspecs | |||
2013-02-11 | Teach remote branch to return its remote | Jameson Miller | |
2013-02-05 | Fix MSVC compilation warnings | nulltoken | |
Fix #1308 | |||
2013-01-25 | Added 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-17 | branch: Introduce git_branch_tracking_name() | nulltoken | |
2013-01-17 | Fix indentations | nulltoken | |
2013-01-09 | update copyrights | Edward Thomson | |
2012-11-28 | tracking: fix retrieval of the tracking ref of branch with empty merge ↵ | nulltoken | |
and/or remote entry | |||
2012-11-28 | More external API cleanup | Vicent Marti | |
Conflicts: src/branch.c tests-clar/refs/branches/create.c | |||
2012-11-28 | Rename ref and reflog apis for consistency | Ben Straub | |
2012-11-12 | repository: Refine repository_head() error report | nulltoken | |
2012-11-11 | create FETCH_HEAD specially instead of as a ref file | Edward Thomson | |
2012-10-25 | config: introduce git_config_rename_section() | nulltoken | |
2012-10-25 | branch: rename config section upon moving | nulltoken | |
2012-10-25 | branch: remove config section upon deletion | nulltoken | |
2012-10-20 | errors: deploy GIT_EORPHANEDHEAD usage | nulltoken | |
2012-10-19 | branch: allow deletion of branch when HEAD's missing | nulltoken | |
2012-10-11 | branches: propagate EEXISTS upon creation | nulltoken | |
2012-10-08 | branch: deploy git_branch_is_head() | nulltoken | |
2012-10-07 | branch: introduce git_branch_is_head() | nulltoken | |
2012-09-14 | refspec: No remote tracking ref from a fetchspec-less remote | nulltoken | |
2012-08-28 | Merge branch 'branch-delete-ref' into development | Vicent Marti | |
Conflicts: include/git2/refs.h | |||
2012-08-27 | branch: reduce code duplication | nulltoken | |
2012-08-27 | branch: Change `git_branch_delete` to take a refbranch-delete-ref | Vicent Marti | |
2012-07-27 | branch: 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-24 | branch: enforce git_branch_delete() parameter checking | nulltoken | |
2012-07-24 | branch: introduce git_branch_tracking() | nulltoken | |
2012-07-24 | branch: make git_branch_move() reference based | nulltoken | |
2012-07-24 | branch: introduce git_branch_lookup() | nulltoken | |
2012-07-24 | branch: change git_branch_create() to make it return a reference | nulltoken | |