summaryrefslogtreecommitdiff
path: root/include/git2/refs.h
Commit message (Collapse)AuthorAgeFilesLines
* Make reference lookups apply precomposeunicodeRussell Belfer2013-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | | Before these changes, looking up a reference would return the same precomposed or decomposed form of the reference name that was used to look it up, so on MacOS which ignores the difference between the two, a single reference could be looked up either way and git_reference_name would return the form of the name that was used to look it up! This change makes lookup always return the precomposed name if core.precomposeunicode is set regardless of which version was used to look it up. The reference iterator was already returning the precomposed form from earlier work. This also updates the CMakeLists.txt rules for enabling iconv usage because the clar tests for this code were actually not being activated properly with the old version. Finally, this moves git_repository_reset_filesystem from include/ git2/repository.h to include/git2/sys/repository.h since it is not really a function that normal library users should have to think about very often.
* refs: add git_reference_is_tagNikolai Vladimirov2013-08-261-0/+9
|
* Fix docs to use proper enum names that exist.Andrej Mitrovic2013-07-011-7/+7
|
* Fixed most documentation header bugsAndreas Linde2013-06-241-6/+6
| | | | | | | | | | | Fixed a few header @param and @return typos with the help of -Wdocumentation in Xcode. The following warnings have not been fixed: common.h:213 - Not sure how the documentation format is for '...' notes.h:102 - Correct @param name but empty text notes.h:111 - Correct @param name but empty text pack.h:140 - @return missing text pack.h:148 - @return missing text
* Merge pull request #1624 from libgit2/vmg/full-ref-iteratorVicent Martí2013-06-031-13/+21
|\ | | | | Breaking RefDB changes
| * ...Aaaand this worksVicent Marti2013-05-301-6/+1
| |
| * What are the chances, reallyVicent Marti2013-05-291-2/+10
| |
| * Liike thisVicent Marti2013-05-281-5/+10
| |
* | Merge pull request #1559 from carlosmn/ref-shorthandVicent Martí2013-05-311-0/+15
|\ \ | |/ |/| Introduce git_reference_shorthand
| * Introduce git_reference_shorthandCarlos Martín Nieto2013-05-081-0/+15
| | | | | | | | Generate a shorthand name out of the full refname.
* | Merge pull request #1597 from zodiac/patch-1Ben Straub2013-05-211-1/+1
|\ \ | | | | | | define "long name" in git_reference_name_to_id
| * | define "long name" in git_reference_name_to_idLi Xuanji2013-05-211-1/+1
| | |
* | | refs: export the glob iteratorCarlos Martín Nieto2013-05-211-0/+11
|/ /
* | Merge pull request #1385 from carlosmn/refs-iterEdward Thomson2013-05-111-18/+26
|\ \ | | | | | | Introduce a refs iterator
| * | refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto2013-05-111-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | refs: introduce an iteratorCarlos Martín Nieto2013-05-111-0/+25
| |/ | | | | | | This allows us to get a list of reference names in a loop instead of callbacks.
* | Expose git_reference_dwimCarlos Martín Nieto2013-05-071-0/+13
|/ | | | | Extract this function out of the rev-parse code to be able to DWIM a reference instead of its target.
* Parse shorthand refspecs as validCarlos Martín Nieto2013-04-281-0/+7
| | | | | Relax the ONELEVEL ref naming rules so the refspec parsing code can ask for 'master' to be considered valid.
* refs: Add `git_referene_target_peel`Vicent Marti2013-04-171-0/+11
|
* refs: Dude, you're OUT.Vicent Marti2013-03-071-18/+0
|
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-39/+28
|
* push: properly handle tagsMichael Schubert2013-01-091-1/+1
| | | | | Currently, push doesn't really handle tags when queueing objects. Fix it.
* Relax refspecs accepted by pushJameson Miller2013-01-091-1/+1
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Merge pull request #1115 from ben/struct-versionsVicent Martí2012-12-051-1/+1
|\ | | | | Version info for public structs
| * Cleanup nitpicky thingsBen Straub2012-11-301-1/+1
| |
* | object: refine git_object_peel() error reportnulltoken2012-12-011-2/+3
| |
* | refs: Deploy EINVALIDSPEC usagenulltoken2012-12-011-13/+21
|/
* Update callback fn ptr for git_reference_foreachRussell Belfer2012-11-271-1/+7
| | | | As part of API review, use a typedef for the callback fn ptr.
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-24/+25
|
* Improve docs, examples, warningsRussell Belfer2012-11-011-130/+154
| | | | | | This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
* Separated git_strarray from common.h. Added doxy comments.Paul Thompson2012-10-111-0/+1
|
* refs: introduce git_reference_is_valid_name()nulltoken2012-09-251-1/+12
|
* refs: make git_reference_normalize_name() accept refspec patternnulltoken2012-09-251-2/+0
|
* refs: introduce git_reference_peel()nulltoken2012-09-061-0/+20
| | | | Fix #530
* Merge branch 'branch-delete-ref' into developmentVicent Marti2012-08-271-0/+10
|\ | | | | | | | | Conflicts: include/git2/refs.h
| * branch: Change `git_branch_delete` to take a refbranch-delete-refVicent Marti2012-08-261-0/+10
| |
* | refs: expose git_reference_normalize_name()nulltoken2012-08-271-0/+48
|/
* refs: fix missing parameter documentationnulltoken2012-08-151-0/+2
|
* Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-061-2/+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-2/+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.
* | refs: drop git_reference_remote_tracking_from_branch()nulltoken2012-07-241-21/+0
| |
* | branch: introduce git_reference_is_branch()nulltoken2012-07-241-0/+10
|/
* refs: introduce git_reference_remote_tracking_from_branch()nulltoken2012-07-121-0/+21
|
* refs: add git_reference_has_log()nulltoken2012-07-071-0/+10
|
* references: introduce git_reference_foreach_glob()nulltoken2012-06-221-1/+30
|
* Fix spelling errors.Bruce Mitchener2012-05-191-2/+2
|
* errors: Rename the generic return codesVicent Martí2012-05-181-13/+13
|
* Properly tag all `enums` with a `_t`Vicent Martí2012-05-181-1/+1
|
* refs: git_reference_listall -> git_reference_listVicent Martí2012-05-181-1/+1
|