summaryrefslogtreecommitdiff
path: root/include/git2/deprecated.h
Commit message (Collapse)AuthorAgeFilesLines
* Make enum in includes C90 compliant by removing trailing comma.Peter Pettersson2021-11-151-1/+1
|
* oidarray: introduce `git_oidarray_dispose`ethomson/oidarray_disposeEdward Thomson2021-09-261-0/+24
| | | | | | Since users are disposing the _contents_ of the oidarray, not freeing the oidarray itself, the proper cleanup function is `git_oidarray_dispose`. Deprecate `git_oidarray_free`.
* diff: deprecate diff_format_emailethomson/emailEdward Thomson2021-09-181-0/+96
| | | | `git_diff_format_email` is deprecated in favor of `git_email_create`.
* Merge pull request #6017 from libgit2/ethomson/buf_is_readonlyEdward Thomson2021-08-291-0/+55
|\ | | | | buf: deprecate public git_buf writing functions
| * buf: deprecate public git_buf writing functionsethomson/buf_is_readonlyEdward Thomson2021-08-291-0/+55
| | | | | | | | | | | | | | | | | | | | A `git_buf` is now a read-only structure as far as callers are concerned. This is a mechanism that we can return data to callers using memory that is owned by the library and can be cleaned up by callers (using `git_buf_dispose`). A `git_buf` can no longer be allocated by callers or provided to the library.
* | rebase: deprecate signing_cbethomson/commit_create_cbEdward Thomson2021-08-291-0/+21
|/ | | | | The signing callback should not be used; instead, callers should provide a commit_create_cb, perform the signing and commit creation themselves.
* filter: deprecate git_filter_list_apply_to_dataEdward Thomson2021-05-061-0/+10
| | | | | Deprecate `git_filter_list_apply_to_data` as it takes user input as a `git_buf`. Users should use `git_filter_list_apply_to_buffer` instead.
* filter: deprecate git_filter_list_stream_dataEdward Thomson2021-05-061-0/+24
| | | | | | | | `git_filter_list_stream_data` takes user input in a `git_buf`. `git_buf` should only be used when libgit2 itself needs to allocate data and returned to a user that they can free when they wish. Replace it with `git_filter_list_stream_buffer` that takes a data buffer and length.
* tree: deprecate `git_treebuilder_write_with_buffer`Edward Thomson2021-03-041-0/+27
| | | | | | | | | The function `git_treebuilder_write_with_buffer` is unnecessary; it is used internally as part of treebuilder writing, but it has little use to external callers. For callers that repeatedly write a treebuilder, we can supply them with a buffer in the treebuilder struct instead of recreating it. For ourselves, when we want a single buffer in our write loop, we can use an internal function.
* revspec: rename git_revparse_mode_t to git_revspec_tethomson/revparseEdward Thomson2021-01-311-0/+21
| | | | | | The information about the type of a revision spec is not information about the parser. Name it accordingly, so that `git_revparse_mode_t` is now `git_revspec_t`. Deprecate the old name.
* blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`ethomson/tttoo_many_tttsEdward Thomson2021-01-051-3/+6
| | | | | | `GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD` is misspelled, it should be `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`, and it would be if it were not for the MacBook Pro keyboard and my inattentiveness.
* remote: deprecate git_remote_is_valid_nameEdward Thomson2020-10-251-0/+21
|
* refs: deprecate git_reference_is_valid_nameEdward Thomson2020-10-251-3/+21
|
* Fixed typo in commentIkko Ashimine2020-10-041-1/+1
| | | occured -> occurred
* Fix deprecation links inside of documentation not workingSven Strickroth2020-09-101-1/+5
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* strarray: deprecate git_strarray_copyEdward Thomson2020-06-011-0/+12
| | | | | | We should not be in the business of copying strings around for users. We either return a strarray that can be freed, or we take one (and do not mutate it).
* strarray: we should `dispose` instead of `free`Edward Thomson2020-06-011-0/+24
| | | | | | We _dispose_ the contents of objects; we _free_ objects (and their contents). Update `git_strarray_free` to be `git_strarray_dispose`. `git_strarray_free` remains as a deprecated proxy function.
* credentials: provide backcompat for opaque structsethomson/cred_deprecationEdward Thomson2020-03-261-0/+7
| | | | | | The credential structures are now opaque and defined in `sys/credential.h`. However, we should continue to provide them for backward compatibility, unless `GIT_DEPRECATED_HARD` is set.
* credential: change git_cred to git_credentialethomson/credtypeEdward Thomson2020-01-261-3/+74
| | | | | | | | | | | | | | | | We avoid abbreviations where possible; rename git_cred to git_credential. In addition, we have standardized on a trailing `_t` for enum types, instead of using "type" in the name. So `git_credtype_t` has become `git_credential_t` and its members have become `GIT_CREDENTIAL` instead of `GIT_CREDTYPE`. Finally, the source and header files have been renamed to `credential` instead of `cred`. Keep previous name and values as deprecated, and include the new header files from the previous ones.
* Move deprecated git_attr_t typedef to previous attribute sectionLukas Berk2019-11-271-13/+0
|
* Add attr.h includeLukas Berk2019-11-271-0/+1
|
* Add compat typdef for git_attr_tLukas Berk2019-11-271-0/+15
| | | | | Some libraries haven't updated to git_attr_value_t and break. Adding the comapt typedef as suggested.
* Merge pull request #5189 from libgit2/ethomson/attrs_from_headEdward Thomson2019-08-271-0/+7
|\ | | | | Optionally read `.gitattributes` from HEAD
| * blob: deprecate `git_blob_filtered_content`Edward Thomson2019-08-111-0/+7
| | | | | | | | Users should now use `git_blob_filter`.
* | object: deprecate git_object__size for removalcmn/object-size-nopublicCarlos Martín Nieto2019-07-291-0/+12
|/ | | | | | | | In #5118 we remove the double-underscore to make it a normally-named public function. However, this is not an interesting function outside of the library and it takes up a name for something that could be more useful. Remove the single-underscore version as we have not done any releases with it.
* configuration: deprecate git_cvar safelyethomson/cvarEdward Thomson2019-07-181-0/+14
|
* net: remove unused `git_headlist_cb`ethomson/deprecate_headlistEdward Thomson2019-06-161-0/+5
|
* attr: rename constants and macros for consistencyethomson/attrEdward Thomson2019-06-161-0/+22
| | | | | Our enumeration values are not generally suffixed with `T`. Further, our enumeration names are generally more descriptive.
* Merge pull request #5117 from libgit2/ethomson/to_fromPatrick Steinhardt2019-06-161-4/+53
|\ | | | | Change API instances of `fromnoun` to `from_noun` (with an underscore)
| * tag: add underscore to `from` functionethomson/to_fromEdward Thomson2019-06-161-0/+6
| | | | | | | | | | | | The majority of functions are named `from_something` (with an underscore) instead of `fromsomething`. Update the tag function for consistency with the rest of the library.
| * index: rename `frombuffer` to `from_buffer`Edward Thomson2019-06-161-3/+9
| | | | | | | | | | | | The majority of functions are named `from_something` (with an underscore) instead of `fromsomething`. Update the index functions for consistency with the rest of the library.
| * blob: add underscore to `from` functionsEdward Thomson2019-06-161-0/+24
| | | | | | | | | | | | The majority of functions are named `from_something` (with an underscore) instead of `fromsomething`. Update the blob functions for consistency with the rest of the library.
| * oid: `is_zero` instead of `iszero`Edward Thomson2019-06-161-1/+14
| | | | | | | | | | | | The only function that is named `issomething` (without underscore) was `git_oid_iszero`. Rename it to `git_oid_is_zero` for consistency with the rest of the library.
* | object: rename git_object__size to git_object_sizeethomson/object_sizeEdward Thomson2019-06-161-0/+2
|/ | | | We don't use double-underscores in the public API.
* Rename opt init functions to `options_init`Edward Thomson2019-06-141-0/+55
| | | | | | | | | | | | | In libgit2 nomenclature, when we need to verb a direct object, we name a function `git_directobject_verb`. Thus, if we need to init an options structure named `git_foo_options`, then the name of the function that does that should be `git_foo_options_init`. The previous names of `git_foo_init_options` is close - it _sounds_ as if it's initializing the options of a `foo`, but in fact `git_foo_options` is its own noun that should be respected. Deprecate the old names; they'll now call directly to the new ones.
* trace: suffix the callbacks with `_cb`ethomson/callback_namesEdward Thomson2019-06-101-0/+15
| | | | | The trace logging callbacks should match the other callback naming conventions, using the `_cb` suffix instead of a `_callback` suffix.
* credentials: suffix the callbacks with `_cb`Edward Thomson2019-06-101-0/+15
| | | | | The credential callbacks should match the other callback naming conventions, using the `_cb` suffix instead of a `_callback` suffix.
* remote: Rename git_remote_completion_type to _tethomson/remote_completionEdward Thomson2019-02-251-0/+3
| | | | | For consistency with other "type" enums, rename git_remote_completion_type to git_remote_completion_t.
* remote: deprecate git_push_transfer_progressethomson/transfer_progressEdward Thomson2019-02-221-0/+9
| | | | | Safely deprecate `git_push_transfer_progress`, forwarding it to the new `git_push_transfer_progress_cb` name.
* indexer: deprecate git_transfer_progressEdward Thomson2019-02-221-0/+29
| | | | | | Safely deprecate `git_transfer_progress` and `git_transfer_progress_cb` types, forwarding them to the new `git_indexer_progress` and `git_indexer_progress_cb`.
* deprecation: offer GIT_DEPRECATE_HARDEdward Thomson2019-01-251-0/+7
| | | | | Users can define `GIT_DEPRECATE_HARD` if they want to remove all functions that we've "softly" deprecated.
* deprecation: provide docurium deprecation noteEdward Thomson2019-01-251-0/+5
| | | | | Add `@deprecated` to the functions that are, so that they'll appear that way in docurium.
* deprecation: move deprecated bits to deprecated.hEdward Thomson2019-01-251-0/+241