Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | branch: add getter for the upstream remote name | Carlos Martín Nieto | 2014-11-08 | 1 | -0/+11 |
| | | | | This gets the value from branch.<foo>.remote. | ||||
* | Add GIT_BRANCH_ALL to git_branch_t enum | Sven Strickroth | 2014-04-16 | 1 | -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 Germishuys | 2014-04-03 | 1 | -3/+4 |
| | |||||
* | branch: constness fixes | Carlos Martín Nieto | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Document branch-creation reflog better | Ben Straub | 2014-01-30 | 1 | -1/+3 |
| | |||||
* | Add reflog parameters to git_branch_move | Ben Straub | 2014-01-30 | 1 | -1/+7 |
| | |||||
* | Add reflog params to git_branch_create | Ben Straub | 2014-01-30 | 1 | -1/+7 |
| | |||||
* | branch: move to git_buf when outputting newly-allocated strings | Carlos Martín Nieto | 2014-01-27 | 1 | -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 Schreiber | 2013-11-05 | 1 | -2/+2 |
| | | | | git_branch_t. | ||||
* | branch: move from foreach to an iterator | Carlos Martín Nieto | 2013-11-05 | 1 | -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ño | 2013-05-26 | 1 | -1/+2 |
| | | | | The reference should be freed by the user, not the library. | ||||
* | branch.h: fix typo in docs | Nikolai Vladimirov | 2013-05-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1450 from carlosmn/branch-upstream | Vicent Martí | 2013-04-11 | 1 | -2/+14 |
|\ | | | | | Branch upstream configuration | ||||
| * | branch: add more upstream configuration management | Carlos Martín Nieto | 2013-04-11 | 1 | -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 Nieto | 2013-03-30 | 1 | -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() documentation | nulltoken | 2013-04-01 | 1 | -4/+2 |
|/ | |||||
* | immutable references and a pluggable ref database | Edward Thomson | 2013-03-07 | 1 | -23/+25 |
| | |||||
* | branch: Make git_branch_remote_name() cope with orphaned heads | nulltoken | 2013-02-22 | 1 | -2/+2 |
| | |||||
* | Teach remote branch to return its remote | Jameson Miller | 2013-02-11 | 1 | -0/+25 |
| | |||||
* | Added git_branch_name(). | Sebastian Bauer | 2013-01-25 | 1 | -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() | nulltoken | 2013-01-16 | 1 | -0/+24 |
| | |||||
* | update copyrights | Edward Thomson | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | branch: Deploy EINVALIDSPEC usage | nulltoken | 2012-12-01 | 1 | -3/+12 |
| | |||||
* | More external API cleanup | Vicent Marti | 2012-11-27 | 1 | -7/+7 |
| | | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c | ||||
* | branch: introduce git_branch_is_head() | nulltoken | 2012-10-07 | 1 | -0/+11 |
| | |||||
* | branch: Add missing include | Vicent Marti | 2012-09-04 | 1 | -0/+1 |
| | |||||
* | Merge branch 'branch-delete-ref' into development | Vicent Marti | 2012-08-27 | 1 | -13/+5 |
|\ | | | | | | | | | Conflicts: include/git2/refs.h | ||||
| * | branch: Change `git_branch_delete` to take a refbranch-delete-ref | Vicent Marti | 2012-08-26 | 1 | -13/+3 |
|/ | |||||
* | Merge remote-tracking branch 'arrbee/tree-walk-fixes' into development | Vicent Marti | 2012-08-06 | 1 | -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 library | Russell Belfer | 2012-08-03 | 1 | -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 Marti | 2012-07-27 | 1 | -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() | nulltoken | 2012-07-24 | 1 | -0/+16 |
| | | |||||
* | | branch: make git_branch_move() reference based | nulltoken | 2012-07-24 | 1 | -9/+4 |
| | | |||||
* | | branch: slight git_branch_create() doc improvement | nulltoken | 2012-07-24 | 1 | -2/+2 |
| | | |||||
* | | branch: introduce git_branch_lookup() | nulltoken | 2012-07-24 | 1 | -0/+24 |
| | | |||||
* | | branch: change git_branch_create() to make it return a reference | nulltoken | 2012-07-24 | 1 | -4/+3 |
|/ | |||||
* | branch: drop git_branch_list() | nulltoken | 2012-06-21 | 1 | -24/+0 |
| | |||||
* | branch: add git_branch_foreach() | nulltoken | 2012-06-21 | 1 | -0/+25 |
| | |||||
* | errors: Rename error codesbreaking-changes | Vicent Martí | 2012-05-18 | 1 | -2/+2 |
| | |||||
* | errors: Rename the generic return codes | Vicent Martí | 2012-05-18 | 1 | -4/+4 |
| | |||||
* | Properly tag all `enums` with a `_t` | Vicent Martí | 2012-05-18 | 1 | -1/+1 |
| | |||||
* | Typedefs don't have enum in front | Carlos Martín Nieto | 2012-04-11 | 1 | -1/+1 |
| | |||||
* | branch: add git_branch_move() | nulltoken | 2012-04-10 | 1 | -0/+22 |
| | |||||
* | Add basic branch management API: git_branch_create(), git_branch_delete(), ↵ | nulltoken | 2012-04-10 | 1 | -6/+91 |
| | | | | git_branch_list() | ||||
* | Update Copyright header | schu | 2012-02-13 | 1 | -1/+1 |
| | | | | Signed-off-by: schu <schu-github@schulog.org> | ||||
* | Cleanup legal data | Vicent Marti | 2011-09-19 | 1 | -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 API | Carlos Martín Nieto | 2011-06-26 | 1 | -0/+9 |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk> |