MCPcopy Create free account

hub / github.com/libgit2/pygit2 / functions

Functions1,514 in github.com/libgit2/pygit2

↓ 4 callersFunctiongit_fetch_options
(payload, opts=None)
pygit2/callbacks.py:377
↓ 4 callersFunctiongit_proxy_options
( payload: object, opts: Optional['GitProxyOptionsC'] = None, proxy: None | bool | str = None, )
pygit2/callbacks.py:402
↓ 4 callersMethodmerge_commits
Merge two arbitrary commits. Returns: an index with the result of the merge. Parameters: ours The comm
pygit2/repository.py:865
↓ 4 callersMethodstash_apply
Apply a stashed state in the stash list to the working directory. Parameters: index : int The position within t
pygit2/repository.py:1313
↓ 4 callersFunctiontreeentry_to_object
src/tree.c:45
↓ 4 callersFunctionwrap_branch
src/branch.c:338
↓ 4 callersFunctionwrap_patch
src/patch.c:43
↓ 3 callersFunctionObject__type
src/object.c:78
↓ 3 callersFunctionPyList_GetItemRef
src/repository.c:51
↓ 3 callersMethod__ensure_tree
(self, maybe_tree: str | Oid | Tree)
pygit2/repository.py:1781
↓ 3 callersMethod_from_c
(cls, ptr: 'GitRepositoryC', owned: bool)
pygit2/repository.py:1824
↓ 3 callersMethod_from_found_config
(fn: Callable)
pygit2/config.py:297
↓ 3 callersMethod_get_entry
(self, key: str | bytes)
pygit2/config.py:121
↓ 3 callersMethodapply_to_buffer
Apply a filter list to a data buffer. Return the filtered contents.
pygit2/filter.py:162
↓ 3 callersMethodcache_object_limit
Set the maximum data size for the given type of object to be considered eligible for caching in memory. Setting to value to
pygit2/settings.py:153
↓ 3 callersMethodclear
(self)
pygit2/index.py:128
↓ 3 callersMethodclose
(self)
pygit2/blob.py:87
↓ 3 callersMethoddiff_to_workdir
Diff the index against the working directory. Return a <Diff> object with the differences between the index and the working copy.
pygit2/index.py:269
↓ 3 callersFunctiondiscover_repository
src/pygit2.c:101
↓ 3 callersFunctionforget_enums
src/pygit2.c:355
↓ 3 callersFunctiongit_checkout_options
(callbacks=None, strategy=None, directory=None, paths=None)
pygit2/callbacks.py:826
↓ 3 callersFunctiongit_oid_to_py_str
src/oid.c:136
↓ 3 callersFunctionhash
src/pygit2.c:174
↓ 3 callersFunctionpgit_borrow_encoding
* Return a pointer to the underlying C string in 'value'. The pointer is * guaranteed by 'tvalue', decrease its refcount when done with the string.
src/utils.c:87
↓ 3 callersMethodprune
Perform a prune against this remote.
pygit2/remotes.py:308
↓ 3 callersFunctionptr_to_bytes
Convert a pointer coming from C code (<cdata 'some_type *'>) to a byte buffer containing the address that the pointer refers to.
pygit2/utils.py:96
↓ 3 callersFunctionpygit2_filter_payload_free
src/filter.c:223
↓ 3 callersMethodremove_all
Remove all index entries matching pathspecs.
pygit2/index.py:191
↓ 3 callersMethodset_head
Set HEAD to point to the given target. Parameters: target The new target for HEAD. Can be a string or Oid (to d
pygit2/repository.py:516
↓ 3 callersMethodset_ssl_cert_locations
( self, cert_file: str | bytes | None, cert_dir: str | bytes )
pygit2/settings.py:196
↓ 3 callersFunctionstash_pathspecs
(paths: list[str])
test/test_repository.py:453
↓ 3 callersMethodstate_cleanup
Remove all the metadata associated with an ongoing command like merge, revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG, e
pygit2/repository.py:692
↓ 3 callersFunctionstrarray_to_strings
Return a list of strings from a git_strarray pointer. Free the strings contained in the git_strarry, this means it won't be usable after
pygit2/utils.py:113
↓ 3 callersFunctiontest_obj
(obj: Object | Commit, msg: str)
test/test_object.py:122
↓ 3 callersFunctionwrap_diff_file
src/diff.c:69
↓ 3 callersFunctionwrap_refdb
src/refdb.c:179
↓ 3 callersMethodwrite
Write the contents of the Index to disk.
pygit2/index.py:123
↓ 2 callersFunctionError_set_exc
src/error.c:93
↓ 2 callersFunctionOdb_read_raw
src/odb.c:159
↓ 2 callersFunctionReference_target_impl
src/reference.c:269
↓ 2 callersFunctionRepository_listall_branches_impl
src/repository.c:1423
↓ 2 callersFunction__assert
(signature: Signature, encoding: None | str)
test/test_signature.py:35
↓ 2 callersMethod__convert_object_to_oid
(oid: 'Oid')
pygit2/packbuilder.py:60
↓ 2 callersMethod__init__
(self, **kw: object)
pygit2/callbacks.py:96
↓ 2 callersFunction__proxy
(name: str, value: object)
test/test_options.py:43
↓ 2 callersMethod__whatever_to_tree_or_blob
(self, obj)
pygit2/repository.py:540
↓ 2 callersFunction_check_worktree
(worktree: Worktree)
test/test_repository.py:872
↓ 2 callersMethod_common_init
(self)
pygit2/repository.py:121
↓ 2 callersMethod_ffi_names
(self)
pygit2/remotes.py:435
↓ 2 callersMethod_from_c
Builds the entry from a ``git_config_entry`` pointer. ``iterator`` must be a ``ConfigIterator`` instance if the entry was created dur
pygit2/config.py:329
↓ 2 callersMethod_get
(self, key: str | bytes)
pygit2/config.py:113
↓ 2 callersFunction_git_checkout_options
( callbacks=None, strategy=None, directory=None, paths=None, c_checkout_options_ptr=None,
pygit2/callbacks.py:765
↓ 2 callersMethod_next_entry
(self)
pygit2/config.py:67
↓ 2 callersFunction_rot13
(data: bytes)
test/test_filter.py:14
↓ 2 callersFunction_test
(diff: Diff)
test/test_diff.py:239
↓ 2 callersMethod_transform
(self, ref: str, fn: Callable)
pygit2/refspec.py:77
↓ 2 callersMethodadd
(self, oid: 'Oid')
pygit2/packbuilder.py:65
↓ 2 callersMethodadd_fetch
Add a fetch refspec (str) to the remote
pygit2/remotes.py:519
↓ 2 callersMethodadd_recur
(self, oid: 'Oid')
pygit2/packbuilder.py:70
↓ 2 callersMethodahead_behind
Calculate how many different commits are in the non-common parts of the history between the two given ids. Ahead is how many
pygit2/repository.py:1473
↓ 2 callersMethodclose
(self, write_next: Callable[[bytes], None])
test/test_filter.py:45
↓ 2 callersMethodcommit
Commit the transaction, applying all queued updates.
pygit2/transaction.py:173
↓ 2 callersMethodcompress
(self)
test/test_refdb_backend.py:71
↓ 2 callersFunctionconfirm_same_repo_after_packing
( testrepo: Repository, tmp_path: Path, pack_delegate: Callable[[PackBuilder], None] | None, )
test/test_packbuilder.py:92
↓ 2 callersMethodconnect
Connect to the remote. Parameters: proxy : None or True or str Proxy configuration. Can be one of: * `None`
pygit2/remotes.py:174
↓ 2 callersMethodcreate_anonymous
Create a new anonymous (in-memory only) remote with the given URL. Returns a <Remote> object.
pygit2/remotes.py:470
↓ 2 callersFunctioncreate_conflict_file
(repo: Repository, branch: Branch, content: str)
test/test_repository_bare.py:212
↓ 2 callersMethoddelete_multivar
Delete a multivar ''name''. ''regexp'' is a regular expression to indicate which values to delete.
pygit2/config.py:212
↓ 2 callersFunctiondiff_get_patch_byindex
src/diff.c:526
↓ 2 callersMethodensure_log
(self, ref_name: str)
test/test_refdb_backend.py:77
↓ 2 callersFunctionget_context_for_lines
(diff: Diff)
test/test_diff.py:273
↓ 2 callersMethodget_int
Look up *key* and parse its value as an integer as per the git-config rules. Return an integer. A value can have a suffix 'k', 'm' or
pygit2/config.py:237
↓ 2 callersFunctionget_libgit2_paths
()
pygit2/_build.py:55
↓ 2 callersFunctiongit_remote_callbacks
(payload)
pygit2/callbacks.py:458
↓ 2 callersFunctiongit_stash_apply_options
( callbacks=None, reinstate_index=False, strategy=None, directory=None, paths=None )
pygit2/callbacks.py:854
↓ 2 callersFunctioniterator_get_next
src/refdb_backend.c:72
↓ 2 callersMethodlistall_reference_objects
Return a list with all the reference objects in the repository.
pygit2/repository.py:363
↓ 2 callersFunctionmerge_base_xxx
src/repository.c:590
↓ 2 callersMethodnames
An iterator over the names of the available remotes.
pygit2/remotes.py:442
↓ 2 callersMethodparse_bool
(text: str)
pygit2/config.py:277
↓ 2 callersMethodparse_int
(text: str)
pygit2/config.py:285
↓ 2 callersFunctionpy_hex_to_git_oid
src/oid.c:53
↓ 2 callersFunctionpy_object_to_otype
src/utils.c:199
↓ 2 callersFunctionpygit2_filter_payload_new
src/filter.c:237
↓ 2 callersFunctionread_bye_txt
()
test/test_repository.py:168
↓ 2 callersMethodremove_directory
Remove a directory from the Index.
pygit2/index.py:186
↓ 2 callersFunctionset_bad_upstream
()
test/test_branch_empty.py:69
↓ 2 callersMethodset_extensions
Set the list of enabled extensions
pygit2/settings.py:319
↓ 2 callersMethodset_multivar
Set a multivar ''name'' to ''value''. ''regexp'' is a regular expression to indicate which values to replace.
pygit2/config.py:199
↓ 2 callersMethodset_odb_loose_priority
Set the priority for loose ODB backend (default 2)
pygit2/settings.py:310
↓ 2 callersMethodset_odb_packed_priority
Set the priority for packed ODB backend (default 1)
pygit2/settings.py:306
↓ 2 callersMethodset_push_url
Set the push-URL for a remote
pygit2/remotes.py:514
↓ 2 callersMethodset_symbolic_target
Set the target of a symbolic reference. The reference must be locked first via lock_ref(). Args: refname: Name of the re
pygit2/transaction.py:126
↓ 2 callersMethodset_url
Set the URL for a remote
pygit2/remotes.py:509
↓ 2 callersMethodstash_pop
Apply a stashed state and remove it from the stash list. For arguments, see Repository.stash_apply().
pygit2/repository.py:1373
↓ 2 callersFunctiontree_getentry_by_path
src/tree.c:159
↓ 2 callersFunctionwrap_diff_delta
src/diff.c:95
↓ 2 callersFunctionwrap_mailmap
src/mailmap.c:244
↓ 2 callersFunctionwrap_note
src/note.c:217
↓ 2 callersFunctionwrap_signature
(csig: 'GitSignatureC')
pygit2/blame.py:39
← previousnext →101–200 of 1,514, ranked by callers