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
↓ 2 callers
Function
wrap_worktree
src/worktree.c:151
↓ 1 callers
Function
Reference_init_symbolic
src/reference.c:132
↓ 1 callers
Function
Tree_fix_index
src/tree.c:89
↓ 1 callers
Method
__enter__
(self)
test/utils.py:123
↓ 1 callers
Method
__init__
( self, username: str, pubkey: str | Path | None, privkey: str | Path | None,
pygit2/credentials.py:108
↓ 1 callers
Method
__init__
The Repository constructor will commonly be called with one argument, the path of the repository to open. Alternatively, con
pygit2/repository.py:1788
↓ 1 callers
Method
__init__
Wrap the specified blob. Parameters: blob: The blob to wrap. as_path: Filter the contents of the blob as if it had th
pygit2/blob.py:127
↓ 1 callers
Method
__setitem__
(self, key: str | bytes, value: bool | int | str | bytes)
pygit2/config.py:150
↓ 1 callers
Function
_cache_enums
src/pygit2.c:376
↓ 1 callers
Method
_get_dlls
(self)
setup.py:100
↓ 1 callers
Function
_get_libgit2_path
()
pygit2/_build.py:43
↓ 1 callers
Method
_initialize_tls_certificate_locations
Set up initial TLS file and directory lookup locations.
pygit2/settings.py:62
↓ 1 callers
Method
_is_filter_in_use
(cls, name: str)
pygit2/filter.py:145
↓ 1 callers
Method
_valid
(self, branch: Branch)
pygit2/branches.py:92
↓ 1 callers
Method
add_conflict
Add or update index entries to represent a conflict. Any staged entries that exist at the given paths will be removed. Param
pygit2/index.py:230
↓ 1 callers
Method
add_push
Add a push refspec (str) to the remote
pygit2/remotes.py:527
↓ 1 callers
Method
apply_to_blob
Apply a filter list to a data buffer. Return the filtered contents.
pygit2/filter.py:189
↓ 1 callers
Method
apply_to_file
Apply a filter list to the contents of a file on disk. Return the filtered contents.
pygit2/filter.py:175
↓ 1 callers
Method
assign_to
(self, git_strarray: 'GitStrrayC')
pygit2/utils.py:186
↓ 1 callers
Method
cache_all
Load and cache all submodules in the repository. Because the `.gitmodules` file is unstructured, loading submodules is an O(
pygit2/submodules.py:371
↓ 1 callers
Method
cache_clear
Clear the submodule cache populated by `submodule_cache_all`. If there is no cache, do nothing. The cache incorporates data
pygit2/submodules.py:384
↓ 1 callers
Method
certificate_check
Certificate callback. Override with your own function to determine whether to accept the server's certificate. Returns: True
pygit2/callbacks.py:179
↓ 1 callers
Method
checkout_head
Checkout HEAD For arguments, see Repository.checkout().
pygit2/repository.py:411
↓ 1 callers
Method
checkout_index
Checkout the given index or the repository's index For arguments, see Repository.checkout().
pygit2/repository.py:420
↓ 1 callers
Method
checkout_notify
Checkout will invoke an optional notification callback for certain cases - you pick which ones via `checkout_notify_flags`.
pygit2/callbacks.py:297
↓ 1 callers
Method
checkout_notify_flags
Returns a bit mask of the notifications to receive from a checkout (a combination of enums.CheckoutNotify constants). By def
pygit2/callbacks.py:276
↓ 1 callers
Method
checkout_progress
Optional callback to notify the consumer of checkout progress.
pygit2/callbacks.py:319
↓ 1 callers
Method
checkout_tree
Checkout the given treeish For arguments, see Repository.checkout().
pygit2/repository.py:433
↓ 1 callers
Method
compress
(self)
pygit2/references.py:110
↓ 1 callers
Function
diff_get_delta_byindex
src/diff.c:594
↓ 1 callers
Function
dowild
Match pattern "p" against "text" */
src/wildmatch.c:99
↓ 1 callers
Method
dst_matches
Return True if the given string matches the destination of this refspec, False otherwise.
pygit2/refspec.py:72
↓ 1 callers
Method
from_c
(cls, repo: 'BaseRepository', ptr: 'GitConfigC')
pygit2/config.py:100
↓ 1 callers
Method
get
(self, key: str)
pygit2/references.py:48
↓ 1 callers
Method
get
Look up submodule information by name or path. Unlike __getitem__, this returns None if the submodule is not found.
pygit2/submodules.py:209
↓ 1 callers
Function
get_credentials
Call fn and return the credentials object.
pygit2/callbacks.py:675
↓ 1 callers
Method
get_global_config
Return a <Config> object representing the global configuration file.
pygit2/config.py:312
↓ 1 callers
Function
get_passthrough
src/filter.c:395
↓ 1 callers
Method
get_refspec
Return the <Refspec> object at the given position.
pygit2/remotes.py:320
↓ 1 callers
Method
get_system_config
Return a <Config> object representing the system configuration file.
pygit2/config.py:307
↓ 1 callers
Function
git_clone_options
(payload, opts=None)
pygit2/callbacks.py:355
↓ 1 callers
Function
git_push_options
(payload, opts=None)
pygit2/callbacks.py:425
↓ 1 callers
Function
init_file_backend
src/pygit2.c:198
↓ 1 callers
Function
int_to_loose_object_type
src/odb.c:42
↓ 1 callers
Method
ls_remotes
Deprecated interface to list_heads
pygit2/remotes.py:284
↓ 1 callers
Method
pack
Pack the objects in the odb chosen by the pack_delegate function and write `.pack` and `.idx` files for them. Returns: the number of
pygit2/repository.py:150
↓ 1 callers
Function
pack_delegate
(pb: PackBuilder)
test/test_packbuilder.py:75
↓ 1 callers
Function
pgit_strdup
src/utils.c:154
↓ 1 callers
Function
py_type_to_git_type
src/utils.c:183
↓ 1 callers
Function
pygit2_filter_stream_init
src/filter.c:329
↓ 1 callers
Method
reload
Reread submodule info from config, index, and HEAD. Call this to reread cached submodule information for this submodule if y
pygit2/submodules.py:123
↓ 1 callers
Method
remove_message
Remove git's prepared message.
pygit2/repository.py:1099
↓ 1 callers
Method
rename
Rename a remote in the configuration. The refspecs in standard format will be renamed. Returns a list of fetch refspecs (list of stri
pygit2/remotes.py:480
↓ 1 callers
Method
revert
Revert the given commit, producing changes in the index and working directory. This operation updates the repository's state
pygit2/repository.py:1601
↓ 1 callers
Method
revert_commit
Revert the given Commit against the given "our" Commit, producing an Index that reflects the result of the revert. Returns:
pygit2/repository.py:1614
↓ 1 callers
Method
rtransform
Transform a reference name according to this refspec from the lhs to the rhs. Return an string.
pygit2/refspec.py:93
↓ 1 callers
Function
set_content
()
test/test_blob.py:113
↓ 1 callers
Method
set_ssl_ciphers
Set the SSL ciphers to use for HTTPS connections
pygit2/settings.py:247
↓ 1 callers
Method
set_threads
(self, n_threads: int)
pygit2/packbuilder.py:75
↓ 1 callers
Function
setup_second_repo
(tmp_path: Path)
test/test_packbuilder.py:84
↓ 1 callers
Method
src_matches
Return True if the given string matches the source of this refspec, False otherwise.
pygit2/refspec.py:66
↓ 1 callers
Method
stash_apply_progress
Stash application progress notification function. `progress` is a StashApplyProgress constant. Raising an exception from th
pygit2/callbacks.py:335
↓ 1 callers
Method
stash_drop
Remove a stashed state from the stash list. Parameters: index : int The position within the stash list of the s
pygit2/repository.py:1361
↓ 1 callers
Method
transform
Transform a reference name according to this refspec from the lhs to the rhs. Return an string.
pygit2/refspec.py:87
↓ 1 callers
Function
tree_getentry_by_index
src/tree.c:134
↓ 1 callers
Function
wildmatch
Match the "pattern" against the "text" string. */
src/wildmatch.c:319
↓ 1 callers
Function
wrap_diff_hunk
src/diff.c:116
↓ 1 callers
Function
wrap_diff_line
src/diff.c:162
↓ 1 callers
Function
wrap_diff_stats
src/diff.c:140
↓ 1 callers
Function
wrap_odb
src/odb.c:475
↓ 1 callers
Function
wrap_odb_backend
src/odb_backend.c:582
↓ 1 callers
Function
wrap_revspec
src/revspec.c:37
↓ 1 callers
Method
write
( self, ref: Reference, force: bool, who: Signature, message: str,
test/test_refdb_backend.py:52
↓ 1 callers
Method
write
(self, path: str | bytes | PathLike[str] | None = None)
pygit2/packbuilder.py:78
↓ 1 callers
Method
write_archive
Write treeish into an archive. If no timestamp is provided and 'treeish' is a commit, its committer timestamp will be used.
pygit2/repository.py:1395
Function
Blob__write_to_queue
src/blob.c:280
Function
Blob_diff
src/blob.c:73
Function
Blob_diff_to_buffer
src/blob.c:124
Function
Blob_getbuffer
src/blob.c:429
Function
Blob_is_binary__get__
src/blob.c:399
Function
Blob_size__get__
src/blob.c:389
Function
Branch_branch_name__get__
src/branch.c:137
Function
Branch_delete
src/branch.c:44
Function
Branch_is_checked_out
src/branch.c:90
Function
Branch_is_head
src/branch.c:68
Function
Branch_raw_branch_name__get__
src/branch.c:155
Function
Branch_remote_name__get__
src/branch.c:178
Function
Branch_rename
src/branch.c:114
Function
Branch_upstream__get__
src/branch.c:204
Function
Branch_upstream__set__
src/branch.c:221
Function
Branch_upstream_name__get__
src/branch.c:255
Function
Commit_author__get__
src/commit.c:187
Function
Commit_commit_time__get__
src/commit.c:153
Function
Commit_commit_time_offset__get__
src/commit.c:163
Function
Commit_committer__get__
src/commit.c:173
Function
Commit_gpg_signature__get__
src/commit.c:69
Function
Commit_message__get__
src/commit.c:57
Function
Commit_message_encoding__get__
src/commit.c:42
Function
Commit_message_trailers__get__
src/commit.c:104
Function
Commit_parent_ids__get__
src/commit.c:278
← previous
next →
201–300 of 1,514, ranked by callers