Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/pygit2
/ functions
Functions
1,514 in github.com/libgit2/pygit2
⨍
Functions
1,514
◇
Types & classes
153
↳
Endpoints
3
↓ 4 callers
Function
git_fetch_options
(payload, opts=None)
pygit2/callbacks.py:377
↓ 4 callers
Function
git_proxy_options
( payload: object, opts: Optional['GitProxyOptionsC'] = None, proxy: None | bool | str = None, )
pygit2/callbacks.py:402
↓ 4 callers
Method
merge_commits
Merge two arbitrary commits. Returns: an index with the result of the merge. Parameters: ours The comm
pygit2/repository.py:865
↓ 4 callers
Method
stash_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 callers
Function
treeentry_to_object
src/tree.c:45
↓ 4 callers
Function
wrap_branch
src/branch.c:338
↓ 4 callers
Function
wrap_patch
src/patch.c:43
↓ 3 callers
Function
Object__type
src/object.c:78
↓ 3 callers
Function
PyList_GetItemRef
src/repository.c:51
↓ 3 callers
Method
__ensure_tree
(self, maybe_tree: str | Oid | Tree)
pygit2/repository.py:1781
↓ 3 callers
Method
_from_c
(cls, ptr: 'GitRepositoryC', owned: bool)
pygit2/repository.py:1824
↓ 3 callers
Method
_from_found_config
(fn: Callable)
pygit2/config.py:297
↓ 3 callers
Method
_get_entry
(self, key: str | bytes)
pygit2/config.py:121
↓ 3 callers
Method
apply_to_buffer
Apply a filter list to a data buffer. Return the filtered contents.
pygit2/filter.py:162
↓ 3 callers
Method
cache_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 callers
Method
clear
(self)
pygit2/index.py:128
↓ 3 callers
Method
close
(self)
pygit2/blob.py:87
↓ 3 callers
Method
diff_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 callers
Function
discover_repository
src/pygit2.c:101
↓ 3 callers
Function
forget_enums
src/pygit2.c:355
↓ 3 callers
Function
git_checkout_options
(callbacks=None, strategy=None, directory=None, paths=None)
pygit2/callbacks.py:826
↓ 3 callers
Function
git_oid_to_py_str
src/oid.c:136
↓ 3 callers
Function
hash
src/pygit2.c:174
↓ 3 callers
Function
pgit_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 callers
Method
prune
Perform a prune against this remote.
pygit2/remotes.py:308
↓ 3 callers
Function
ptr_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 callers
Function
pygit2_filter_payload_free
src/filter.c:223
↓ 3 callers
Method
remove_all
Remove all index entries matching pathspecs.
pygit2/index.py:191
↓ 3 callers
Method
set_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 callers
Method
set_ssl_cert_locations
( self, cert_file: str | bytes | None, cert_dir: str | bytes )
pygit2/settings.py:196
↓ 3 callers
Function
stash_pathspecs
(paths: list[str])
test/test_repository.py:453
↓ 3 callers
Method
state_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 callers
Function
strarray_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 callers
Function
test_obj
(obj: Object | Commit, msg: str)
test/test_object.py:122
↓ 3 callers
Function
wrap_diff_file
src/diff.c:69
↓ 3 callers
Function
wrap_refdb
src/refdb.c:179
↓ 3 callers
Method
write
Write the contents of the Index to disk.
pygit2/index.py:123
↓ 2 callers
Function
Error_set_exc
src/error.c:93
↓ 2 callers
Function
Odb_read_raw
src/odb.c:159
↓ 2 callers
Function
Reference_target_impl
src/reference.c:269
↓ 2 callers
Function
Repository_listall_branches_impl
src/repository.c:1423
↓ 2 callers
Function
__assert
(signature: Signature, encoding: None | str)
test/test_signature.py:35
↓ 2 callers
Method
__convert_object_to_oid
(oid: 'Oid')
pygit2/packbuilder.py:60
↓ 2 callers
Method
__init__
(self, **kw: object)
pygit2/callbacks.py:96
↓ 2 callers
Function
__proxy
(name: str, value: object)
test/test_options.py:43
↓ 2 callers
Method
__whatever_to_tree_or_blob
(self, obj)
pygit2/repository.py:540
↓ 2 callers
Function
_check_worktree
(worktree: Worktree)
test/test_repository.py:872
↓ 2 callers
Method
_common_init
(self)
pygit2/repository.py:121
↓ 2 callers
Method
_ffi_names
(self)
pygit2/remotes.py:435
↓ 2 callers
Method
_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 callers
Method
_get
(self, key: str | bytes)
pygit2/config.py:113
↓ 2 callers
Function
_git_checkout_options
( callbacks=None, strategy=None, directory=None, paths=None, c_checkout_options_ptr=None,
pygit2/callbacks.py:765
↓ 2 callers
Method
_next_entry
(self)
pygit2/config.py:67
↓ 2 callers
Function
_rot13
(data: bytes)
test/test_filter.py:14
↓ 2 callers
Function
_test
(diff: Diff)
test/test_diff.py:239
↓ 2 callers
Method
_transform
(self, ref: str, fn: Callable)
pygit2/refspec.py:77
↓ 2 callers
Method
add
(self, oid: 'Oid')
pygit2/packbuilder.py:65
↓ 2 callers
Method
add_fetch
Add a fetch refspec (str) to the remote
pygit2/remotes.py:519
↓ 2 callers
Method
add_recur
(self, oid: 'Oid')
pygit2/packbuilder.py:70
↓ 2 callers
Method
ahead_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 callers
Method
close
(self, write_next: Callable[[bytes], None])
test/test_filter.py:45
↓ 2 callers
Method
commit
Commit the transaction, applying all queued updates.
pygit2/transaction.py:173
↓ 2 callers
Method
compress
(self)
test/test_refdb_backend.py:71
↓ 2 callers
Function
confirm_same_repo_after_packing
( testrepo: Repository, tmp_path: Path, pack_delegate: Callable[[PackBuilder], None] | None, )
test/test_packbuilder.py:92
↓ 2 callers
Method
connect
Connect to the remote. Parameters: proxy : None or True or str Proxy configuration. Can be one of: * `None`
pygit2/remotes.py:174
↓ 2 callers
Method
create_anonymous
Create a new anonymous (in-memory only) remote with the given URL. Returns a <Remote> object.
pygit2/remotes.py:470
↓ 2 callers
Function
create_conflict_file
(repo: Repository, branch: Branch, content: str)
test/test_repository_bare.py:212
↓ 2 callers
Method
delete_multivar
Delete a multivar ''name''. ''regexp'' is a regular expression to indicate which values to delete.
pygit2/config.py:212
↓ 2 callers
Function
diff_get_patch_byindex
src/diff.c:526
↓ 2 callers
Method
ensure_log
(self, ref_name: str)
test/test_refdb_backend.py:77
↓ 2 callers
Function
get_context_for_lines
(diff: Diff)
test/test_diff.py:273
↓ 2 callers
Method
get_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 callers
Function
get_libgit2_paths
()
pygit2/_build.py:55
↓ 2 callers
Function
git_remote_callbacks
(payload)
pygit2/callbacks.py:458
↓ 2 callers
Function
git_stash_apply_options
( callbacks=None, reinstate_index=False, strategy=None, directory=None, paths=None )
pygit2/callbacks.py:854
↓ 2 callers
Function
iterator_get_next
src/refdb_backend.c:72
↓ 2 callers
Method
listall_reference_objects
Return a list with all the reference objects in the repository.
pygit2/repository.py:363
↓ 2 callers
Function
merge_base_xxx
src/repository.c:590
↓ 2 callers
Method
names
An iterator over the names of the available remotes.
pygit2/remotes.py:442
↓ 2 callers
Method
parse_bool
(text: str)
pygit2/config.py:277
↓ 2 callers
Method
parse_int
(text: str)
pygit2/config.py:285
↓ 2 callers
Function
py_hex_to_git_oid
src/oid.c:53
↓ 2 callers
Function
py_object_to_otype
src/utils.c:199
↓ 2 callers
Function
pygit2_filter_payload_new
src/filter.c:237
↓ 2 callers
Function
read_bye_txt
()
test/test_repository.py:168
↓ 2 callers
Method
remove_directory
Remove a directory from the Index.
pygit2/index.py:186
↓ 2 callers
Function
set_bad_upstream
()
test/test_branch_empty.py:69
↓ 2 callers
Method
set_extensions
Set the list of enabled extensions
pygit2/settings.py:319
↓ 2 callers
Method
set_multivar
Set a multivar ''name'' to ''value''. ''regexp'' is a regular expression to indicate which values to replace.
pygit2/config.py:199
↓ 2 callers
Method
set_odb_loose_priority
Set the priority for loose ODB backend (default 2)
pygit2/settings.py:310
↓ 2 callers
Method
set_odb_packed_priority
Set the priority for packed ODB backend (default 1)
pygit2/settings.py:306
↓ 2 callers
Method
set_push_url
Set the push-URL for a remote
pygit2/remotes.py:514
↓ 2 callers
Method
set_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 callers
Method
set_url
Set the URL for a remote
pygit2/remotes.py:509
↓ 2 callers
Method
stash_pop
Apply a stashed state and remove it from the stash list. For arguments, see Repository.stash_apply().
pygit2/repository.py:1373
↓ 2 callers
Function
tree_getentry_by_path
src/tree.c:159
↓ 2 callers
Function
wrap_diff_delta
src/diff.c:95
↓ 2 callers
Function
wrap_mailmap
src/mailmap.c:244
↓ 2 callers
Function
wrap_note
src/note.c:217
↓ 2 callers
Function
wrap_signature
(csig: 'GitSignatureC')
pygit2/blame.py:39
← previous
next →
101–200 of 1,514, ranked by callers