summaryrefslogtreecommitdiff
path: root/include/git2/branch.h
Commit message (Collapse)AuthorAgeFilesLines
* branch: add getter for the upstream remote nameCarlos Martín Nieto2014-11-081-0/+11
| | | | This gets the value from branch.<foo>.remote.
* Add GIT_BRANCH_ALL to git_branch_t enumSven Strickroth2014-04-161-1/+1
| | | | | | | | git_branch_t is an enum so requesting GIT_BRANCH_LOCAL | GIT_BRANCH_REMOTE is not possible as it is not a member of the enum (at least VS2013 C++ complains about it). This fixes a regression introduced in commit a667ca8298193b3103c1dbdcb1f6c527e6e99eb2 (PR #1946). Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Const correctness!Jacques Germishuys2014-04-031-3/+4
|
* branch: constness fixesCarlos Martín Nieto2014-03-171-1/+1
|
* Document branch-creation reflog betterBen Straub2014-01-301-1/+3
|
* Add reflog parameters to git_branch_moveBen Straub2014-01-301-1/+7
|
* Add reflog params to git_branch_createBen Straub2014-01-301-1/+7
|
* branch: move to git_buf when outputting newly-allocated stringsCarlos Martín Nieto2014-01-271-21/+10
| | | | | Internally we already did everything with git_bufs, so this is just exposing those functions with public names.
* Change the git_branch_iterator_new and git_branch_next definitions to use ↵Arthur Schreiber2013-11-051-2/+2
| | | | git_branch_t.
* branch: move from foreach to an iteratorCarlos Martín Nieto2013-11-051-16/+24
| | | | | | | | 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.
* Fix documentation of git_branch_delete.Daniel Rodríguez Troitiño2013-05-261-1/+2
| | | | The reference should be freed by the user, not the library.
* branch.h: fix typo in docsNikolai Vladimirov2013-05-061-1/+1
|
* Merge pull request #1450 from carlosmn/branch-upstreamVicent Martí2013-04-111-2/+14
|\ | | | | Branch upstream configuration
| * branch: add more upstream configuration managementCarlos Martín Nieto2013-04-111-0/+12
| | | | | | | | | | Add functions to set and unset the upstream configuration to complement the getter we already have.
| * branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-301-2/+2
| | | | | | | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* | branch: Fix git_branch_create() documentationnulltoken2013-04-011-4/+2
|/
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-23/+25
|
* branch: Make git_branch_remote_name() cope with orphaned headsnulltoken2013-02-221-2/+2
|
* Teach remote branch to return its remoteJameson Miller2013-02-111-0/+25
|
* Added git_branch_name().Sebastian Bauer2013-01-251-0/+18
| | | | | | | | | 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.
* branch: Introduce git_branch_tracking_name()nulltoken2013-01-161-0/+24
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* branch: Deploy EINVALIDSPEC usagenulltoken2012-12-011-3/+12
|
* More external API cleanupVicent Marti2012-11-271-7/+7
| | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c
* branch: introduce git_branch_is_head()nulltoken2012-10-071-0/+11
|
* branch: Add missing includeVicent Marti2012-09-041-0/+1
|
* Merge branch 'branch-delete-ref' into developmentVicent Marti2012-08-271-13/+5
|\ | | | | | | | | Conflicts: include/git2/refs.h
| * branch: Change `git_branch_delete` to take a refbranch-delete-refVicent Marti2012-08-261-13/+3
|/
* Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-061-1/+3
|\ | | | | | | | | | | | | | | | | Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
| * Update iterators for consistency across libraryRussell Belfer2012-08-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
* | branch: Add `repository` argument to `create`Vicent Marti2012-07-271-0/+1
| | | | | | | | | | Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
* | branch: introduce git_branch_tracking()nulltoken2012-07-241-0/+16
| |
* | branch: make git_branch_move() reference basednulltoken2012-07-241-9/+4
| |
* | branch: slight git_branch_create() doc improvementnulltoken2012-07-241-2/+2
| |
* | branch: introduce git_branch_lookup()nulltoken2012-07-241-0/+24
| |
* | branch: change git_branch_create() to make it return a referencenulltoken2012-07-241-4/+3
|/
* branch: drop git_branch_list()nulltoken2012-06-211-24/+0
|
* branch: add git_branch_foreach()nulltoken2012-06-211-0/+25
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-2/+2
|
* errors: Rename the generic return codesVicent Martí2012-05-181-4/+4
|
* Properly tag all `enums` with a `_t`Vicent Martí2012-05-181-1/+1
|
* Typedefs don't have enum in frontCarlos Martín Nieto2012-04-111-1/+1
|
* branch: add git_branch_move()nulltoken2012-04-101-0/+22
|
* Add basic branch management API: git_branch_create(), git_branch_delete(), ↵nulltoken2012-04-101-6/+91
| | | | git_branch_list()
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* Cleanup legal dataVicent Marti2011-09-191-0/+6
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* Add a remotes APICarlos Martín Nieto2011-06-261-0/+9
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>