summaryrefslogtreecommitdiff
path: root/include/git2/refs.h
Commit message (Collapse)AuthorAgeFilesLines
* doc: add documentation to all the public structs and enumscmn/doc-allCarlos Martín Nieto2014-12-061-0/+6
| | | | | | | | | | This makes them show up in the reference, even if the text itself isn't the most descriptive. These have been found with grep -Przon '\n\ntypedef struct.*?\{' -- include grep -Przon '\n\ntypedef enum.*?\{' -- include
* Spelling fixesWill Stamper2014-12-041-1/+1
|
* Fixed miscellaneous documentation errors.Michael Anderson2014-05-231-3/+1
|
* refs: document _next_name()Carlos Martín Nieto2014-04-301-0/+11
| | | | | If it's not documented, it doesn't show up in the docs (and we really should document, anyway).
* Const correctness!Jacques Germishuys2014-04-031-5/+7
|
* branch: constness fixesCarlos Martín Nieto2014-03-171-1/+1
|
* refs: fix copy-paste doc errorCarlos Martín Nieto2014-03-131-1/+1
|
* refs: move current_id before the reflog parametersCarlos Martín Nieto2014-02-101-4/+4
| | | | | Keep the reflog parameters as the last two, as they're the optional parameters.
* refs: conditional wording fixupsCarlos Martín Nieto2014-02-101-8/+11
| | | | | This addresses arrbee's concerns about wording in the conditional reference udpate functions.
* refs: add an unconditional deleteCarlos Martín Nieto2014-02-051-0/+11
| | | | | Add it under the git_reference_remove() name, letting the user pass the repo and name, analogous to unconditional setting/creation.
* refs: check the ref's old value when deletingCarlos Martín Nieto2014-02-051-1/+4
| | | | Recognize when the reference has changed since we loaded it.
* refs: bring conditional symbolic updates to the frontendCarlos Martín Nieto2014-02-051-0/+40
| | | | Bring the race detection goodness to symbolic references as well.
* refs: return GIT_EMODIFIED if the ref target movedCarlos Martín Nieto2014-02-051-2/+4
| | | | | In case we loose the race to update the reference, return GIT_EMODIFIED to let the user distinguish it from other types of errors.
* refs: changes from feedbackCarlos Martín Nieto2014-02-051-1/+1
| | | | | | Change the name to _matching() intead of _if(), and force _set_target() to be a conditional update. If the user doesn't care about the old value, they should use git_reference_create().
* refs: conditional ref updatesCarlos Martín Nieto2014-02-051-5/+44
| | | | Allow updating references if the old value matches the given one.
* Add `git_reference_is_note`.Arthur Schreiber2014-02-021-0/+10
|
* Ensure renaming a reference updates the reflogBen Straub2014-01-301-1/+5
|
* Revert a wrong doc change.Arthur Schreiber2014-01-161-1/+1
|
* Fix some documentation issues.Arthur Schreiber2014-01-161-6/+6
|
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-151-128/+24
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Merge pull request #1920 from libgit2/cmn/ref-with-logVicent Marti2013-12-181-3/+148
|\ | | | | Reference operations with log
| * refs: expose has_log() on the backendCarlos Martín Nieto2013-12-091-3/+3
| | | | | | | | | | | | The frontend used to look at the file directly, but that's obviously not the right thing to do. Expose it on the backend and use that function instead.
| * refs: expose a way to ensure a ref has a logCarlos Martín Nieto2013-12-091-0/+12
| | | | | | | | | | | | Sometimes (e.g. stash) we want to make sure that a log will be written, even if it's not in one of the standard locations. Let's make that easier.
| * refs: Introduce git_reference_symbolic_set_target_with_log()nulltoken2013-11-231-0/+25
| |
| * refs: Introduce git_reference_set_target_with_log()nulltoken2013-11-231-0/+23
| |
| * refs: Introduce git_reference_symbolic_create_with_log()nulltoken2013-11-231-0/+42
| |
| * refs: Introduce git_reference_create_with_log()nulltoken2013-11-231-0/+43
| |
* | Update docs for new callback return value behaviorRussell Belfer2013-12-111-2/+15
|/
* 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.