summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5106 from tiennou/fix/ref-api-fixesPatrick Steinhardt2019-09-271-21/+57
|\ | | | | git_refdb API fixes
| * refdb: documentationEtienne Samson2019-09-051-21/+57
| |
* | Don't use enum for flagsSven Strickroth2019-09-264-8/+9
| | | | | | | | | | | | Using an `enum` causes trouble when used with C++ as bitwise operations are not possible w/o casting (e.g., `opts.flags &= ~GIT_BLOB_FILTER_CHECK_FOR_BINARY;` is invalid as there is no `&=` operator for `enum`). Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | transport: move transport-related typedef in transport.hEtienne Samson2019-09-132-11/+11
| |
* | cert: move cert enums & struct to its own headerEtienne Samson2019-09-135-101/+133
| |
* | cred: separate public interface from low-level detailsEtienne Samson2019-09-135-306/+402
|/
* Merge pull request #5189 from libgit2/ethomson/attrs_from_headEdward Thomson2019-08-274-6/+60
|\ | | | | Optionally read `.gitattributes` from HEAD
| * blob: optionally read attributes from repositoryEdward Thomson2019-08-111-0/+6
| | | | | | | | | | | | | | When `GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD` is passed to `git_blob_filter`, read attributes from `gitattributes` files that are checked in to the repository at the HEAD revision. This passes the flag `GIT_FILTER_ATTRIBUTES_FROM_HEAD` to the filter functions.
| * filter: optionally read attributes from repositoryEdward Thomson2019-08-111-0/+3
| | | | | | | | | | | | | | When `GIT_FILTER_ATTRIBUTES_FROM_HEAD` is specified, configure the filter to read filter attributes from `gitattributes` files that are checked in to the repository at the HEAD revision. This passes the flag `GIT_ATTR_CHECK_INCLUDE_HEAD` to the attribute reading functions.
| * attr: optionally read attributes from repositoryEdward Thomson2019-08-111-2/+9
| | | | | | | | | | When `GIT_ATTR_CHECK_INCLUDE_HEAD` is specified, read `gitattribute` files that are checked into the repository at the HEAD revision.
| * blob: allow blob filtering to ignore system gitattributesEdward Thomson2019-08-111-0/+6
| | | | | | | | | | | | | | | | Introduce `GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES`, which tells `git_blob_filter` to ignore the system-wide attributes file, usually `/etc/gitattributes`. This simply passes the appropriate flag to the attribute loading code.
| * filter: add GIT_FILTER_NO_SYSTEM_ATTRIBUTES optionEdward Thomson2019-08-111-0/+3
| | | | | | | | | | | | Allow system-wide attributes (the ones specified in `/etc/gitattributes`) to be ignored if the flag `GIT_FILTER_NO_SYSTEM_ATTRIBUTES` is specified.
| * filter: document GIT_FILTER_ALLOW_UNSAFEEdward Thomson2019-08-111-0/+2
| |
| * blob: deprecate `git_blob_filtered_content`Edward Thomson2019-08-112-19/+7
| | | | | | | | Users should now use `git_blob_filter`.
| * blob: introduce git_blob_filterEdward Thomson2019-08-111-0/+39
| | | | | | | | | | Provide a function to filter blobs that allows for more functionality than the existing `git_blob_filtered_content` function.
* | Merge pull request #4913 from implausible/feature/signing-rebase-commitsPatrick Steinhardt2019-08-092-2/+40
|\ \ | | | | | | Add sign capability to git_rebase_commit
| * | documentation: add small explanation for commit signingTyler Ang-Wanek2019-07-021-1/+7
| | |
| * | fixup: code cleanup around rebase commit signingTyler Ang-Wanek2019-07-021-1/+1
| | | | | | | | | | | | | | | Use ci_git_fail_with where appropriate. Use correct initializer for callback.
| * | commit: git_commit_create_with_signature should support null signatureTyler Ang-Wanek2019-07-021-1/+2
| | | | | | | | | | | | If provided with a null signature, skip adding the signature header and create the commit anyway.
| * | Include "commit.h" in "rebase.h" for git_commit_signing_cbTyler Ang-Wanek2019-06-251-0/+1
| | |
| * | fixup: More generic signing_cb for future flexibilityTyler Wanek2019-01-242-16/+16
| | | | | | | | | | | | | | | In the case that we want to build merge + commit, cherrypick + commit, or even just build a commit with signing callback, `git_rebase_commit_signature_cb` particular callback should be made more generic. We also renamed `signature_cb` to `signing_cb` to improve clarity on the purpose of the callback (build a difference between a git_signature and the act of signing). So we've ended up with `git_commit_signing_cb`.
| * | Single callback for commit signing in rebase w/ git_bufTyler Wanek2019-01-231-26/+4
| | | | | | | | | Reduces the number of callbacks for signing a commit during a rebase operation to just one callback. That callback has 2 out git_buf parameters for signature and signature field. We use git_buf here, because we cannot make any assumptions about the heap allocator a user of the library might be using.
| * | Add signing callbacks for git_rebase_commit in git_rebase_optionsTyler Wanek2019-01-231-1/+53
| | | | | | | | | | | | 2 callbacks have been added to git_rebase_options, git_rebase_commit_signature_cb and git_rebase_commit_signature_field_cb. When git_rebase_commit_signature_cb is present in git_rebase_options, it will be called whenever git_rebase_commit is performed, giving an opportunity to sign the commit. The signing procedure can be skipped if the callback specifies passthrough as the error. The git_rebase_commit_signature_field_cb will only be called if the other callback is present or did not passthrough, and it provides means to specify which field a signature is for. Git_rebase_options was chosen as the home for these callbacks as it keeps backwards compatibility with the current rebase api.
* | | object: deprecate git_object__size for removalcmn/object-size-nopublicCarlos Martín Nieto2019-07-292-14/+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
| |
* | configuration: cvar -> configmapPatrick Steinhardt2019-07-181-12/+12
| | | | | | | | | | `cvar` is an unhelpful name. Refactor its usage to `configmap` for more clarity.
* | Merge pull request #5128 from tiennou/fix/docsPatrick Steinhardt2019-06-277-70/+124
|\ \ | | | | | | More documentation
| * | docs: More of itEtienne Samson2019-06-267-70/+124
| | |
* | | repo: commondir resolution can sometimes fallback to the repodirEtienne Samson2019-06-262-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, https://git-scm.com/docs/gitrepository-layout says: info Additional information about the repository is recorded in this directory. This directory is ignored if $GIT_COMMON_DIR is set and "$GIT_COMMON_DIR/info" will be used instead. So when looking for `info/attributes`, we need to check the commondir first, or fallback to "our" `info/attributes`.
* | | docs: fixupsEtienne Samson2019-06-261-1/+1
|/ /
* | tree: return `size_t` for treebuilder entrycountEdward Thomson2019-06-241-1/+1
| | | | | | | | | | | | | | We keep the treebuilder entrycount as a `size_t` - return that instead of downcasting to an `unsigned int`. Callers who were storing this value in an `unsigned int` will continue to downcast themselves, so there should be no behavior change for callers.
* | net: remove unused `git_headlist_cb`ethomson/deprecate_headlistEdward Thomson2019-06-162-5/+5
| |
* | attr: rename constants and macros for consistencyethomson/attrEdward Thomson2019-06-162-10/+32
| | | | | | | | | | 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-165-14/+63
|\ \ | | | | | | Change API instances of `fromnoun` to `from_noun` (with an underscore)
| * | tag: add underscore to `from` functionethomson/to_fromEdward Thomson2019-06-162-1/+7
| | | | | | | | | | | | | | | | | | 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-162-4/+10
| | | | | | | | | | | | | | | | | | 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-162-7/+31
| | | | | | | | | | | | | | | | | | 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-162-2/+15
| | | | | | | | | | | | | | | | | | 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-162-1/+3
|/ / | | | | | | We don't use double-underscores in the public API.
* | doc: add missing documentation commentsEtienne Samson2019-06-159-2/+68
| |
* | indexer: correct missing includesEtienne Samson2019-06-153-0/+3
| | | | | | | | Docurium seems to choke on this header because it can't see both git_indexer_progress & git_indexer_progress_cb, let's add the include.
* | apply: add an options struct initializerethomson/opts_initEdward Thomson2019-06-141-1/+3
| |
* | Rename opt init functions to `options_init`Edward Thomson2019-06-1418-43/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-2/+17
| | | | | | | | | | 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-102-6/+21
| | | | | | | | | | The credential callbacks should match the other callback naming conventions, using the `_cb` suffix instead of a `_callback` suffix.
* | remote: add callback to resolve URLs before connectingErik Aigner2019-05-211-0/+20
| | | | | | | | | | | | Since libssh2 doesn't read host configuration from the config file, this callback can be used to hand over URL resolving to the client without touching the SSH implementation itself.
* | rebase: orig_head and onto accessorsErik Aigner2019-04-211-0/+28
| | | | | | | | | | | | | | | | The rebase struct stores fields with information about the current rebase process, which were not accessible via a public interface. Accessors for getting the `orig_head` and `onto` branch names and object ids have been added.
* | Merge pull request #5032 from eaigner/checkout-force-safe-docfixEdward Thomson2019-03-281-2/+14
|\ \ | | | | | | docs: clarify relation of safe and forced checkout strategy
| * | docs: clarify relation of safe and forced checkout strategyErik Aigner2019-03-251-2/+14
| | |
* | | Merge pull request #5008 from libgit2/ethomson/remote_completionEdward Thomson2019-03-022-3/+6
|\ \ \ | | | | | | | | remote: Rename git_remote_completion_type to _t