dulwich API reference
400 public APIs from dulwich (dulwich/dulwich) — 145 classes, 41 functions, 214 methods. Signatures extracted by static analysis of the actual source.
Repository: dulwich/dulwich
| Kind | Count |
|---|---|
| Classes | 145 |
| Functions | 41 |
| Methods | 214 |
API list
class
contrib.greenthreads.GreenThreadsMissingObjectFinderFind the objects missing from another object store.
class
contrib.paramiko_vendor.ParamikoSSHVendorSSH vendor implementation using paramiko.
class
contrib.requests_vendor.RequestsHttpGitClientHTTP Git client using the requests library.
func
contrib.requests_vendor.get_session(config:'ConfigFile | None') -> SessionCreate a requests session with Git configuration.
class
contrib.swift.PackInfoMissingObjectFinderFind missing objects required for pack generation.
method
contrib.swift.PackInfoMissingObjectFinder.next() -> tuple[bytes, int, bytes | None] | NoneGet the next missing object.
class
contrib.swift.SwiftExceptionException raised for Swift-related errors.
class
contrib.swift.SwiftInfoRefsContainerManage references in info/refs object.
method
contrib.swift.SwiftInfoRefsContainer.allkeys() -> set[Ref]Get all reference names.
method
contrib.swift.SwiftInfoRefsContainer.get_packed_refs() -> dict[Ref, ObjectID]Get packed references.
method
contrib.swift.SwiftInfoRefsContainer.get_peeled(name:Ref) -> ObjectID | NoneGet peeled version of a reference.
method
contrib.swift.SwiftInfoRefsContainer.read_loose_ref(name:Ref) -> bytes | NoneRead a loose reference.
class
contrib.swift.SwiftObjectStoreA Swift Object Store.
func
contrib.swift.SwiftObjectStore.abort() -> NoneAbort the pack operation (no-op).
method
contrib.swift.SwiftObjectStore.add_object(obj:object) -> NoneAdd a single object to the store.
method
contrib.swift.SwiftObjectStore.add_pack() -> tuple[BytesIO, Callable[[], None], Callable[[], None]]Add a new pack to this object store.
method
contrib.swift.SwiftObjectStore.add_thin_pack(read_all:Callable[[int], bytes], read_some:Callable[[int], bytes]) -> 'SwiftPack'Read a thin pack.
func
contrib.swift.SwiftObjectStore.commit() -> 'SwiftPack | None'Commit the pack to Swift storage.
func
contrib.swift.SwiftObjectStore.commit_wrapper() -> NoneWrapper that discards the return value.
method
contrib.swift.SwiftObjectStore.pack_info_get(sha:ObjectID) -> tuple[Any, ...] | NoneGet pack info for a specific SHA.
class
contrib.swift.SwiftPackA Git pack object.
method
contrib.swift.SwiftPack.pack_info() -> dict[str, Any] | NoneThe pack data object being used.
class
contrib.swift.SwiftPackDataThe data contained in a packfile.
method
contrib.swift.SwiftPackData.close() -> NoneClose the pack data (no-op for Swift).
method
contrib.swift.SwiftPackData.get_object_at(offset:int) -> tuple[int, tuple[bytes | int, list[bytes]] | list[bytes]]Get the object at a specific offset in the pack.
method
contrib.swift.SwiftPackData.get_stored_checksum() -> bytesGet the stored checksum for this pack.
class
contrib.swift.SwiftPackReaderA SwiftPackReader that mimic read and sync method.
method
contrib.swift.SwiftPackReader.read(length:int) -> bytesRead a specified amount of Bytes form the pack object.
method
contrib.swift.SwiftPackReader.read_checksum() -> bytesRead the checksum from the pack.
method
contrib.swift.SwiftPackReader.seek(offset:int) -> NoneSeek to a specified offset.
class
contrib.swift.SwiftRepoA Git repository backed by Swift object storage.
method
contrib.swift.SwiftRepo.init_bare(scon:SwiftConnector, conf:ConfigParser) -> 'SwiftRepo'Create a new bare repository.
class
contrib.swift.SwiftSystemBackendBackend for serving Git repositories from Swift.
method
contrib.swift.SwiftSystemBackend.open_repository(path:str) -> 'BackendRepo'Open a repository at the given path.
func
contrib.swift.cmd_daemon(args:list[str]) -> NoneStart a TCP git server for Swift repositories.
func
contrib.swift.cmd_init(args:list[str]) -> NoneInitialize a new Git repository in Swift.
func
contrib.swift.load_conf(path:str | None=None, file:str | None=None) -> ConfigParserLoad configuration in global var CONF.
func
contrib.swift.load_pack_info(filename:str, scon:'SwiftConnector | None'=None, file:BinaryIO | None=None) -> dict[str, Any] | NoneLoad pack info from Swift or file.
func
contrib.swift.main(argv:list[str]=sys.argv) -> NoneMain entry point for Swift Git command line interface.
func
contrib.swift.pack_info_create(pack_data:'PackData', pack_index:'PackIndex') -> bytesCreate pack info file contents.
func
contrib.swift.swift_load_pack_index(scon:'SwiftConnector', filename:str, object_format:'ObjectFormat') -> 'PackIndex'Read a pack index file from Swift.
func
dulwich.aiohttp.server.get_index_file(request:web.Request) -> web.StreamResponseHandle request for a pack index file.
func
dulwich.aiohttp.server.get_info_packs(request:web.Request) -> web.ResponseHandle request for /info/packs.
func
dulwich.aiohttp.server.get_info_refs(request:web.Request) -> web.StreamResponse | web.ResponseHandle request for /info/refs.
func
dulwich.aiohttp.server.get_loose_object(request:web.Request) -> web.ResponseHandle request for a loose object.
func
dulwich.aiohttp.server.get_pack_file(request:web.Request) -> web.StreamResponseHandle request for a pack file.
func
dulwich.aiohttp.server.get_text_file(request:web.Request) -> web.StreamResponseHandle request for a text file.
func
dulwich.aiohttp.server.handle_service_request(request:web.Request) -> web.StreamResponseHandle a service request endpoint.
func
dulwich.aiohttp.server.main(argv:list[str] | None=None) -> NoneEntry point for starting an HTTP git server.
func
dulwich.aiohttp.server.refs_request(repo:Repo, request:web.Request, handlers:dict[bytes, type] | None=None) -> web.StreamResponse | web.ResponseHandle a refs request.
func
dulwich.aiohttp.server.send_file(req:web.Request, f:BinaryIO | None, headers:dict[str, str]) -> web.StreamResponseSend a file-like object to the request output.
class
dulwich.am.AmConflictRaised when a patch fails to apply during am.
class
dulwich.am.AmErrorBase class for am errors.
class
dulwich.am.DiskAmStateManagerManages git am state on disk in .git/rebase-apply/.
method
dulwich.am.DiskAmStateManager.clean() -> NoneRemove the state directory.
method
dulwich.am.DiskAmStateManager.exists() -> boolCheck if am state directory exists.
method
dulwich.am.DiskAmStateManager.get_keep_non_patch() -> boolReturn whether only [PATCH] is stripped from brackets.
method
dulwich.am.DiskAmStateManager.get_keep_subject() -> boolReturn whether subject munging is disabled.
method
dulwich.am.DiskAmStateManager.get_last() -> intReturn the total number of patches.
method
dulwich.am.DiskAmStateManager.get_message_id() -> boolReturn whether Message-ID inclusion is enabled.
method
dulwich.am.DiskAmStateManager.get_next() -> intReturn the 1-based index of the current patch.
method
dulwich.am.DiskAmStateManager.get_orig_head() -> ObjectIDReturn the original HEAD sha from before am started.
method
dulwich.am.DiskAmStateManager.get_patch(number:int) -> bytesReturn the raw email bytes for the given patch number.
method
dulwich.am.DiskAmStateManager.get_scissors() -> boolReturn whether scissors line handling is enabled.
method
dulwich.am.DiskAmStateManager.get_strip() -> intReturn the number of path components to strip.
method
dulwich.am.DiskAmStateManager.get_three_way() -> boolReturn whether three-way merge fallback is enabled.
method
dulwich.am.DiskAmStateManager.load_author_info() -> tuple[str, str, str | None]Load saved author metadata for the current patch.
method
dulwich.am.DiskAmStateManager.load_message() -> bytesLoad the saved commit message for the current patch.
method
dulwich.am.DiskAmStateManager.save_author_info(name:str, email_addr:str, date:str | None) -> NoneSave author metadata for the current patch.
method
dulwich.am.DiskAmStateManager.save_message(message:bytes) -> NoneSave the commit message for the current patch.
method
dulwich.am.DiskAmStateManager.set_next(value:int) -> NoneSet the current patch index.
func
dulwich.am.am_abort(r:'Repo', *config:'Config | None'=None) -> NoneAbort the current am operation and restore the original state.
func
dulwich.am.am_quit(r:'Repo') -> NoneQuit the current am operation without reverting changes.
func
dulwich.approxidate.parse_approxidate(time_spec:str | bytes) -> intParse a Git approxidate specification and return a Unix timestamp.
func
dulwich.approxidate.parse_relative_time(time_str:str) -> intParse a relative time string like '2 weeks ago' into seconds.
class
dulwich.archive.ChunkedBytesIOTurn a list of bytestrings into a file-like object.
method
dulwich.archive.ChunkedBytesIO.read(maxbytes:int | None=None) -> bytesRead bytes from the chunked stream.
class
dulwich.attrs.GitAttributesA collection of gitattributes patterns that can match paths.
method
dulwich.attrs.GitAttributes.add_patterns(patterns:Sequence[tuple[Pattern, Mapping[bytes, AttributeValue]]]) -> NoneAdd patterns to the collection.
method
dulwich.attrs.GitAttributes.from_file(filename:str | bytes) -> 'GitAttributes'Create GitAttributes from a gitattributes file.
method
dulwich.attrs.GitAttributes.from_path(path:str | bytes) -> 'GitAttributes'Create GitAttributes from .gitattributes in a directory.
method
dulwich.attrs.GitAttributes.match_path(path:bytes) -> dict[bytes, AttributeValue]Get attributes for a path by matching against patterns.
method
dulwich.attrs.GitAttributes.remove_pattern(pattern:bytes) -> NoneRemove all attributes for a pattern.
method
dulwich.attrs.GitAttributes.set_attribute(pattern:bytes, name:bytes, value:AttributeValue) -> NoneSet an attribute for a pattern.
method
dulwich.attrs.GitAttributes.to_bytes() -> bytesConvert GitAttributes to bytes format suitable for writing to file.
method
dulwich.attrs.GitAttributes.write_to_file(filename:str | bytes) -> NoneWrite GitAttributes to a file.
class
dulwich.attrs.PatternA single gitattributes pattern.
method
dulwich.attrs.Pattern.match(path:bytes) -> boolCheck if path matches this pattern.
func
dulwich.attrs.parse_git_attributes(f:IO[bytes]) -> Generator[tuple[bytes, Mapping[bytes, AttributeValue]], None, None]Parse a Git attributes string.
func
dulwich.attrs.parse_gitattributes_file(filename:str | bytes) -> list[tuple[Pattern, Mapping[bytes, AttributeValue]]]Parse a gitattributes file and return compiled patterns.
func
dulwich.attrs.read_gitattributes(path:str | bytes) -> list[tuple[Pattern, Mapping[bytes, AttributeValue]]]Read .gitattributes from a directory.
class
dulwich.bisect.BisectStateManages the state of a bisect session.
method
dulwich.bisect.BisectState.get_log() -> strGet the bisect log.
method
dulwich.bisect.BisectState.is_active() -> boolCheck if a bisect session is active.
method
dulwich.bisect.BisectState.mark_bad(rev:ObjectID | None=None) -> ObjectID | NoneMark a commit as bad.
method
dulwich.bisect.BisectState.mark_good(rev:ObjectID | None=None) -> ObjectID | NoneMark a commit as good.
method
dulwich.bisect.BisectState.replay(log_content:str) -> NoneReplay a bisect log.
method
dulwich.bisect.BisectState.reset(commit:ObjectID | None=None) -> NoneReset bisect state and return to original branch/commit.
method
dulwich.bisect.BisectState.skip(revs:Sequence[ObjectID] | None=None) -> ObjectID | NoneSkip one or more commits.
method
dulwich.bisect.BisectState.start(bad:ObjectID | None=None, good:Sequence[ObjectID] | None=None, paths:Sequence[bytes] | None=None, no_checkout:bool=False, term_bad:str='bad', term_good:str='good') -> NoneStart a new bisect session.
class
dulwich.bitmap.BitmapEntryA single bitmap entry for a commit.
class
dulwich.bitmap.EWAHBitmapEWAH (Enhanced Word-Aligned Hybrid) compressed bitmap.
method
dulwich.bitmap.EWAHBitmap.add(bit:int) -> NoneSet a bit.
method
dulwich.bitmap.EWAHBitmap.encode() -> bytesEncode bitmap to EWAH compressed format.
class
dulwich.bitmap.PackBitmapA pack bitmap index.
method
dulwich.bitmap.PackBitmap.get_bitmap(commit_sha:bytes) -> EWAHBitmap | NoneGet the bitmap for a commit.
method
dulwich.bitmap.PackBitmap.has_commit(commit_sha:bytes) -> boolCheck if a commit has a bitmap.
method
dulwich.bitmap.PackBitmap.iter_commits() -> Iterator[bytes]Iterate over all commits with bitmaps.
func
dulwich.bitmap.apply_xor_compression(bitmaps:list[tuple[ObjectID, EWAHBitmap]], max_xor_offset:int=MAX_XOR_OFFSET) -> list[tuple[ObjectID, EWAHBitmap, int]]Apply XOR compression to bitmaps.
func
dulwich.bitmap.bitmap_to_object_shas(bitmap:EWAHBitmap, pack_index:'PackIndex', type_filter:EWAHBitmap | None=None) -> set[ObjectID]Convert a bitmap to a set of object SHAs.
func
dulwich.bitmap.build_name_hash_cache(sha_to_pos:dict['RawObjectID', int], object_store:'BaseObjectStore') -> list[int]Build name-hash cache for all objects in a pack.
func
dulwich.bitmap.build_reachability_bitmap(commit_sha:ObjectID, sha_to_pos:dict[RawObjectID, int], object_store:'BaseObjectStore') -> EWAHBitmapBuild a reachability bitmap for a commit.
func
dulwich.bitmap.read_bitmap(filename:str | os.PathLike[str], pack_index:'PackIndex | None'=None, pack_checksum:bytes | None=None) -> PackBitmapRead a bitmap index file.
func
dulwich.bitmap.read_bitmap_file(f:IO[bytes], pack_index:'PackIndex | None'=None, pack_checksum:bytes | None=None) -> PackBitmapRead bitmap data from a file object.
func
dulwich.bitmap.select_bitmap_commits(refs:dict['Ref', ObjectID], object_store:'BaseObjectStore', commit_interval:int=DEFAULT_COMMIT_INTERVAL) -> list[ObjectID]Select commits for bitmap generation.
func
dulwich.bitmap.write_bitmap(filename:str | os.PathLike[str], bitmap:PackBitmap) -> NoneWrite a bitmap index file.
func
dulwich.bitmap.write_bitmap_file(f:IO[bytes], bitmap:PackBitmap) -> NoneWrite bitmap data to a file object.
class
dulwich.bundle.BundleGit bundle object representation.
method
dulwich.bundle.Bundle.close() -> NoneClose any open resources in this bundle.
class
dulwich.bundle.PackDataLikeProtocol for objects that behave like PackData.
method
dulwich.bundle.PackDataLike.close() -> NoneClose any open resources.
method
dulwich.bundle.PackDataLike.iter_unpacked() -> Iterator[UnpackedObject]Iterate over unpacked objects in the pack.
func
dulwich.bundle.read_bundle(f:BinaryIO) -> BundleRead a bundle file.
func
dulwich.bundle.write_bundle(f:BinaryIO, bundle:Bundle) -> NoneWrite a bundle to a file.
class
dulwich.bundle_uri.BundleListEntryRepresents a single bundle in a bundle list.
class
dulwich.bundle_uri.BundleURIErrorError related to bundle URI operations.
func
dulwich.bundle_uri.fetch_bundle_uri(uri:str, progress:Callable[[bytes], None] | None=None, timeout:float | None=None) -> tuple['Bundle | None', 'BundleList | None']Fetch content from a bundle URI.
func
dulwich.bundle_uri.parse_bundle_list(data:bytes, base_uri:str | None=None) -> BundleListParse a bundle list from Git config format.
class
dulwich.cli.CommandA Dulwich subcommand.
method
dulwich.cli.Command.run(args:Sequence[str]) -> int | NoneRun the command.
class
dulwich.cli.CommitMessageErrorRaised when there's an issue with the commit message.
class
dulwich.cli.PagerFile-like object that pages output through external pager programs.
method
dulwich.cli.Pager.buffer() -> BinaryIOReturn the underlying binary buffer.
method
dulwich.cli.Pager.close() -> NoneClose the pager.
method
dulwich.cli.Pager.closed() -> boolReturn whether the pager is closed.
method
dulwich.cli.Pager.encoding() -> strReturn the encoding used.
method
dulwich.cli.Pager.errors() -> str | NoneReturn the error handling scheme.
method
dulwich.cli.Pager.fileno() -> intReturn the file descriptor (not supported).
method
dulwich.cli.Pager.flush() -> NoneFlush the pager.
method
dulwich.cli.Pager.isatty() -> boolReturn whether the pager is a TTY.
method
dulwich.cli.Pager.line_buffering() -> boolReturn whether line buffering is enabled.
method
dulwich.cli.Pager.mode() -> strReturn the mode.
method
dulwich.cli.Pager.name() -> strReturn the name.
method
dulwich.cli.Pager.newlines() -> str | tuple[str, ...] | NoneReturn the newlines mode.
method
dulwich.cli.Pager.read(size:int=-1) -> strRead from the pager (not supported).
method
dulwich.cli.Pager.readable() -> boolReturn whether the pager is readable (it's not).
method
dulwich.cli.Pager.readline(size:int=-1) -> strRead a line from the pager (not supported).
method
dulwich.cli.Pager.readlines(hint:int=-1) -> list[str]Read lines from the pager (not supported).
method
dulwich.cli.Pager.seek(offset:int, whence:int=0) -> intSeek in the pager (not supported).
method
dulwich.cli.Pager.seekable() -> boolReturn whether the pager is seekable (it's not).
method
dulwich.cli.Pager.tell() -> intReturn the current position (not supported).
method
dulwich.cli.Pager.truncate(size:int | None=None) -> intTruncate the pager (not supported).
method
dulwich.cli.Pager.writable() -> boolReturn whether the pager is writable.
method
dulwich.cli.Pager.write(text:str) -> intWrite text to the pager.
method
dulwich.cli.Pager.writelines(lines:Iterable[str]) -> NoneWrite a list of lines to the pager.
class
dulwich.cli.PagerBufferBinary buffer wrapper for Pager to mimic sys.stdout.buffer.
method
dulwich.cli.PagerBuffer.close() -> NoneClose the pager.
method
dulwich.cli.PagerBuffer.closed() -> boolReturn whether the buffer is closed.
method
dulwich.cli.PagerBuffer.fileno() -> intReturn the file descriptor (not supported).
method
dulwich.cli.PagerBuffer.flush() -> NoneFlush the pager.
method
dulwich.cli.PagerBuffer.isatty() -> boolReturn whether the buffer is a TTY.
method
dulwich.cli.PagerBuffer.mode() -> strReturn the mode.
method
dulwich.cli.PagerBuffer.name() -> strReturn the name.
method
dulwich.cli.PagerBuffer.read(size:int=-1) -> bytesRead from the buffer (not supported).
method
dulwich.cli.PagerBuffer.read1(size:int=-1) -> bytesRead from the buffer (not supported).
method
dulwich.cli.PagerBuffer.readable() -> boolReturn whether the buffer is readable (it's not).
method
dulwich.cli.PagerBuffer.readinto(b:bytearray) -> intRead into buffer (not supported).
method
dulwich.cli.PagerBuffer.readinto1(b:bytearray) -> intRead into buffer (not supported).
method
dulwich.cli.PagerBuffer.readline(size:int=-1) -> bytesRead a line from the buffer (not supported).
method
dulwich.cli.PagerBuffer.readlines(hint:int=-1) -> list[bytes]Read lines from the buffer (not supported).
method
dulwich.cli.PagerBuffer.seek(offset:int, whence:int=0) -> intSeek in the buffer (not supported).
method
dulwich.cli.PagerBuffer.seekable() -> boolReturn whether the buffer is seekable (it's not).
method
dulwich.cli.PagerBuffer.tell() -> intReturn the current position (not supported).
method
dulwich.cli.PagerBuffer.truncate(size:int | None=None) -> intTruncate the buffer (not supported).
method
dulwich.cli.PagerBuffer.writable() -> boolReturn whether the buffer is writable.
method
dulwich.cli.PagerBuffer.write(data:bytes | bytearray | memoryview) -> intWrite bytes to pager.
method
dulwich.cli.PagerBuffer.writelines(lines:Iterable[bytes | bytearray | memoryview]) -> NoneWrite multiple lines to pager.
class
dulwich.cli.SuperCommandBase class for commands that have subcommands.
method
dulwich.cli.SuperCommand.run(args:Sequence[str]) -> int | NoneExecute the subcommand command.
class
dulwich.cli.cmd_addAdd file contents to the index.
method
dulwich.cli.cmd_add.run(argv:Sequence[str]) -> NoneExecute the add command.
class
dulwich.cli.cmd_amApply patches from mailbox-style email messages.
class
dulwich.cli.cmd_annotateAnnotate each line in a file with commit information.
method
dulwich.cli.cmd_annotate.run(argv:Sequence[str]) -> NoneExecute the annotate command.
class
dulwich.cli.cmd_applyApply a patch to files and/or to the index.
method
dulwich.cli.cmd_apply.run(args:Sequence[str]) -> NoneExecute the apply command.
class
dulwich.cli.cmd_archiveCreate an archive of files from a named tree.
method
dulwich.cli.cmd_archive.run(args:Sequence[str]) -> NoneExecute the archive command.
class
dulwich.cli.cmd_bisectUse binary search to find the commit that introduced a bug.
method
dulwich.cli.cmd_bisect.run(args:Sequence[str]) -> int | NoneExecute the bisect command.
class
dulwich.cli.cmd_blameShow what revision and author last modified each line of a file.
method
dulwich.cli.cmd_blame.run(argv:Sequence[str]) -> NoneExecute the blame command.
class
dulwich.cli.cmd_branchList, create, or delete branches.
method
dulwich.cli.cmd_branch.run(args:Sequence[str]) -> int | NoneExecute the branch command.
class
dulwich.cli.cmd_bundleCreate, unpack, and manipulate bundle files.
method
dulwich.cli.cmd_bundle.run(args:Sequence[str]) -> intExecute the bundle command.
class
dulwich.cli.cmd_check_ignoreCheck whether files are excluded by gitignore.
method
dulwich.cli.cmd_check_ignore.run(args:Sequence[str]) -> intExecute the check-ignore command.
class
dulwich.cli.cmd_check_mailmapShow canonical names and email addresses of contacts.
method
dulwich.cli.cmd_check_mailmap.run(args:Sequence[str]) -> NoneExecute the check-mailmap command.
class
dulwich.cli.cmd_checkoutSwitch branches or restore working tree files.
method
dulwich.cli.cmd_checkout.run(args:Sequence[str]) -> int | NoneExecute the checkout command.
class
dulwich.cli.cmd_cherryFind commits not merged upstream.
method
dulwich.cli.cmd_cherry.run(args:Sequence[str]) -> int | NoneExecute the cherry command.
class
dulwich.cli.cmd_cherry_pickApply the changes introduced by some existing commits.
method
dulwich.cli.cmd_cherry_pick.run(args:Sequence[str]) -> int | NoneExecute the cherry-pick command.
class
dulwich.cli.cmd_cleanRemove untracked files from the working tree.
method
dulwich.cli.cmd_clean.run(args:Sequence[str]) -> intExecute the clean command.
class
dulwich.cli.cmd_cloneClone a repository into a new directory.
method
dulwich.cli.cmd_clone.run(args:Sequence[str]) -> int | NoneExecute the clone command.
class
dulwich.cli.cmd_columnDisplay data in columns.
method
dulwich.cli.cmd_column.run(args:Sequence[str]) -> NoneExecute the column command.
class
dulwich.cli.cmd_commitRecord changes to the repository.
method
dulwich.cli.cmd_commit.run(args:Sequence[str]) -> int | NoneExecute the commit command.
class
dulwich.cli.cmd_commit_treeCreate a new commit object from a tree.
method
dulwich.cli.cmd_commit_tree.run(args:Sequence[str]) -> NoneExecute the commit-tree command.
class
dulwich.cli.cmd_configGet and set repository or global options.
method
dulwich.cli.cmd_config.run(args:Sequence[str]) -> int | NoneExecute the config command.
class
dulwich.cli.cmd_count_objectsCount unpacked number of objects and their disk consumption.
method
dulwich.cli.cmd_count_objects.run(args:Sequence[str]) -> NoneExecute the count-objects command.
class
dulwich.cli.cmd_daemonRun a simple Git protocol server.
method
dulwich.cli.cmd_daemon.run(args:Sequence[str]) -> NoneExecute the daemon command.
class
dulwich.cli.cmd_describeGive an object a human readable name based on an available ref.
method
dulwich.cli.cmd_describe.run(args:Sequence[str]) -> NoneExecute the describe command.
class
dulwich.cli.cmd_diagnoseDisplay diagnostic information about the Python environment.
method
dulwich.cli.cmd_diagnose.run(args:Sequence[str]) -> NoneExecute the diagnose command.
class
dulwich.cli.cmd_diffShow changes between commits, commit and working tree, etc.
method
dulwich.cli.cmd_diff.run(args:Sequence[str]) -> NoneExecute the diff command.
class
dulwich.cli.cmd_diff_treeCompare the content and mode of trees.
method
dulwich.cli.cmd_diff_tree.run(args:Sequence[str]) -> NoneExecute the diff-tree command.
class
dulwich.cli.cmd_dump_indexShow information about a pack index file.
method
dulwich.cli.cmd_dump_index.run(args:Sequence[str]) -> NoneExecute the dump-index command.
class
dulwich.cli.cmd_dump_packDump the contents of a pack file for debugging.
method
dulwich.cli.cmd_dump_pack.run(args:Sequence[str]) -> NoneExecute the dump-pack command.
class
dulwich.cli.cmd_fetchDownload objects and refs from another repository.
method
dulwich.cli.cmd_fetch.run(args:Sequence[str]) -> NoneExecute the fetch command.
class
dulwich.cli.cmd_fetch_packReceive missing objects from another repository.
method
dulwich.cli.cmd_fetch_pack.run(argv:Sequence[str]) -> NoneExecute the fetch-pack command.
class
dulwich.cli.cmd_filter_branchRewrite branches.
method
dulwich.cli.cmd_filter_branch.run(args:Sequence[str]) -> int | NoneExecute the filter-branch command.
class
dulwich.cli.cmd_for_each_refOutput information on each ref.
method
dulwich.cli.cmd_for_each_ref.run(args:Sequence[str]) -> NoneExecute the for-each-ref command.
class
dulwich.cli.cmd_format_patchPrepare patches for e-mail submission.
method
dulwich.cli.cmd_format_patch.run(args:Sequence[str]) -> NoneExecute the format-patch command.
class
dulwich.cli.cmd_fsckVerify the connectivity and validity of objects in the database.
method
dulwich.cli.cmd_fsck.run(args:Sequence[str]) -> NoneExecute the fsck command.
class
dulwich.cli.cmd_gcCleanup unnecessary files and optimize the local repository.
method
dulwich.cli.cmd_gc.run(args:Sequence[str]) -> int | NoneExecute the gc command.
class
dulwich.cli.cmd_grepSearch for patterns in tracked files.
method
dulwich.cli.cmd_grep.run(args:Sequence[str]) -> NoneExecute the grep command.
class
dulwich.cli.cmd_hash_objectCompute object ID and optionally store in repository.
method
dulwich.cli.cmd_hash_object.run(args:Sequence[str]) -> intExecute the hash-object command.
class
dulwich.cli.cmd_helpDisplay help information about git.
method
dulwich.cli.cmd_help.run(args:Sequence[str]) -> NoneExecute the help command.
class
dulwich.cli.cmd_initCreate an empty Git repository or reinitialize an existing one.
method
dulwich.cli.cmd_init.run(args:Sequence[str]) -> NoneExecute the init command.
class
dulwich.cli.cmd_interpret_trailersAdd or parse structured information in commit messages.
method
dulwich.cli.cmd_interpret_trailers.run(args:Sequence[str]) -> NoneExecute the interpret-trailers command.
class
dulwich.cli.cmd_lfsGit Large File Storage management.
method
dulwich.cli.cmd_lfs.run(argv:Sequence[str]) -> NoneExecute the lfs command.
class
dulwich.cli.cmd_logShow commit logs.
method
dulwich.cli.cmd_log.run(args:Sequence[str]) -> NoneExecute the log command.
class
dulwich.cli.cmd_ls_filesShow information about files in the index and working tree.
method
dulwich.cli.cmd_ls_files.run(args:Sequence[str]) -> NoneExecute the ls-files command.
class
dulwich.cli.cmd_ls_remoteList references in a remote repository.
method
dulwich.cli.cmd_ls_remote.run(args:Sequence[str]) -> NoneExecute the ls-remote command.
class
dulwich.cli.cmd_ls_treeList the contents of a tree object.
method
dulwich.cli.cmd_ls_tree.run(args:Sequence[str]) -> NoneExecute the ls-tree command.
class
dulwich.cli.cmd_mailinfoExtract patch information from an email message.
method
dulwich.cli.cmd_mailinfo.run(args:Sequence[str]) -> NoneExecute the mailinfo command.
class
dulwich.cli.cmd_mailsplitSplit mbox or Maildir into individual message files.
method
dulwich.cli.cmd_mailsplit.run(args:Sequence[str]) -> NoneExecute the mailsplit command.
class
dulwich.cli.cmd_maintenanceRun tasks to optimize Git repository data.
method
dulwich.cli.cmd_maintenance.run(args:Sequence[str]) -> int | NoneExecute the maintenance command.
class
dulwich.cli.cmd_mergeJoin two or more development histories together.
method
dulwich.cli.cmd_merge.run(args:Sequence[str]) -> int | NoneExecute the merge command.
class
dulwich.cli.cmd_merge_baseFind the best common ancestor between commits.
method
dulwich.cli.cmd_merge_base.run(args:Sequence[str]) -> int | NoneExecute the merge-base command.
class
dulwich.cli.cmd_merge_treeShow three-way merge without touching index.
method
dulwich.cli.cmd_merge_tree.run(args:Sequence[str]) -> int | NoneExecute the merge-tree command.
class
dulwich.cli.cmd_mktagCreate a tag object from raw tag data.
method
dulwich.cli.cmd_mktag.run(args:Sequence[str]) -> intExecute the mktag command.
class
dulwich.cli.cmd_mvMove or rename a file, a directory, or a symlink.
method
dulwich.cli.cmd_mv.run(argv:Sequence[str]) -> NoneExecute the mv command.
class
dulwich.cli.cmd_notesAdd or inspect object notes.
class
dulwich.cli.cmd_notes_addAdd notes to a commit.
method
dulwich.cli.cmd_notes_add.run(args:Sequence[str]) -> NoneExecute the notes-add command.
class
dulwich.cli.cmd_notes_listList all note objects.
method
dulwich.cli.cmd_notes_list.run(args:Sequence[str]) -> NoneExecute the notes-list command.
class
dulwich.cli.cmd_notes_removeRemove notes for a commit.
method
dulwich.cli.cmd_notes_remove.run(args:Sequence[str]) -> NoneExecute the notes-remove command.
class
dulwich.cli.cmd_notes_showShow notes for a commit.
method
dulwich.cli.cmd_notes_show.run(args:Sequence[str]) -> NoneExecute the notes-show command.
class
dulwich.cli.cmd_pack_objectsCreate a packed archive of objects.
method
dulwich.cli.cmd_pack_objects.run(args:Sequence[str]) -> NoneExecute the pack-objects command.
class
dulwich.cli.cmd_pack_refsPack heads and tags for efficient repository access.
method
dulwich.cli.cmd_pack_refs.run(argv:Sequence[str]) -> NoneExecute the pack-refs command.
class
dulwich.cli.cmd_prunePrune all unreachable objects from the object database.
method
dulwich.cli.cmd_prune.run(args:Sequence[str]) -> int | NoneExecute the prune command.
method
dulwich.cli.cmd_pull.run(args:Sequence[str]) -> int | NoneExecute the pull command.
class
dulwich.cli.cmd_pushUpdate remote refs along with associated objects.
method
dulwich.cli.cmd_push.run(argv:Sequence[str]) -> int | NoneExecute the push command.
class
dulwich.cli.cmd_range_diffCompare two commit ranges.
method
dulwich.cli.cmd_range_diff.run(args:Sequence[str]) -> int | NoneExecute the range-diff command.
class
dulwich.cli.cmd_rebaseReapply commits on top of another base tip.
method
dulwich.cli.cmd_rebase.run(args:Sequence[str]) -> intExecute the rebase command.
class
dulwich.cli.cmd_receive_packReceive what is pushed into the repository.
method
dulwich.cli.cmd_receive_pack.run(args:Sequence[str]) -> NoneExecute the receive-pack command.
class
dulwich.cli.cmd_reflogManage reflog information.
method
dulwich.cli.cmd_reflog.run(args:Sequence[str]) -> NoneExecute the reflog command.
class
dulwich.cli.cmd_remoteManage set of tracked repositories.
class
dulwich.cli.cmd_remote_addAdd a remote repository.
method
dulwich.cli.cmd_remote_add.run(args:Sequence[str]) -> NoneExecute the remote-add command.
class
dulwich.cli.cmd_repackPack unpacked objects in a repository.
method
dulwich.cli.cmd_repack.run(args:Sequence[str]) -> NoneExecute the repack command.
class
dulwich.cli.cmd_replaceCreate, list, and delete replacement refs.
method
dulwich.cli.cmd_replace.run(args:Sequence[str]) -> int | NoneExecute the replace command.
class
dulwich.cli.cmd_replace_deleteDelete a replacement ref.
method
dulwich.cli.cmd_replace_delete.run(args:Sequence[str]) -> int | NoneExecute the replace-delete command.
class
dulwich.cli.cmd_replace_listList all replacement refs.
method
dulwich.cli.cmd_replace_list.run(args:Sequence[str]) -> NoneExecute the replace-list command.
class
dulwich.cli.cmd_request_pullGenerate a summary of pending changes.
method
dulwich.cli.cmd_request_pull.run(args:Sequence[str]) -> int | NoneExecute the request-pull command.
class
dulwich.cli.cmd_rerereRecord and reuse recorded conflict resolutions.
method
dulwich.cli.cmd_rerere.run(args:Sequence[str]) -> NoneExecute the rerere command.
class
dulwich.cli.cmd_resetReset current HEAD to the specified state.
method
dulwich.cli.cmd_reset.run(args:Sequence[str]) -> int | NoneExecute the reset command.
class
dulwich.cli.cmd_restoreRestore working tree files.
method
dulwich.cli.cmd_restore.run(args:Sequence[str]) -> int | NoneExecute the restore command.
class
dulwich.cli.cmd_rev_listList commit objects in reverse chronological order.
method
dulwich.cli.cmd_rev_list.run(args:Sequence[str]) -> NoneExecute the rev-list command.
class
dulwich.cli.cmd_rev_parseParse revision and other objects.
method
dulwich.cli.cmd_rev_parse.run(args:Sequence[str]) -> intExecute the rev-parse command.
class
dulwich.cli.cmd_revertRevert some existing commits.
method
dulwich.cli.cmd_revert.run(args:Sequence[str]) -> int | NoneExecute the revert command.
class
dulwich.cli.cmd_rmRemove files from the working tree and from the index.
method
dulwich.cli.cmd_rm.run(argv:Sequence[str]) -> NoneExecute the rm command.
class
dulwich.cli.cmd_shortlogShow a shortlog of commits by author.
method
dulwich.cli.cmd_shortlog.run(args:Sequence[str]) -> NoneExecute the shortlog command with the given CLI arguments.
class
dulwich.cli.cmd_showShow various types of objects.
method
dulwich.cli.cmd_show.run(argv:Sequence[str]) -> NoneExecute the show command.
class
dulwich.cli.cmd_show_branchShow branches and their commits.
method
dulwich.cli.cmd_show_branch.run(args:Sequence[str]) -> int | NoneExecute the show-branch command.
class
dulwich.cli.cmd_show_indexShow packed archive index.
method
dulwich.cli.cmd_show_index.run(args:Sequence[str]) -> intExecute the show-index command.
class
dulwich.cli.cmd_show_refList references in a local repository.
method
dulwich.cli.cmd_show_ref.run(args:Sequence[str]) -> int | NoneExecute the show-ref command.
class
dulwich.cli.cmd_sparse_checkoutManage sparse checkout.
class
dulwich.cli.cmd_sparse_checkout_addAdd directories to sparse checkout.
method
dulwich.cli.cmd_sparse_checkout_add.run(args:Sequence[str]) -> intExecute the sparse-checkout add command.
class
dulwich.cli.cmd_sparse_checkout_disableDisable sparse checkout.
method
dulwich.cli.cmd_sparse_checkout_disable.run(args:Sequence[str]) -> intExecute the sparse-checkout disable command.
class
dulwich.cli.cmd_sparse_checkout_initInitialize sparse checkout in cone mode.
method
dulwich.cli.cmd_sparse_checkout_init.run(args:Sequence[str]) -> intExecute the sparse-checkout init command.
class
dulwich.cli.cmd_sparse_checkout_listList sparse checkout patterns.
method
dulwich.cli.cmd_sparse_checkout_list.run(args:Sequence[str]) -> intExecute the sparse-checkout list command.
class
dulwich.cli.cmd_sparse_checkout_setSet sparse checkout directories.
method
dulwich.cli.cmd_sparse_checkout_set.run(args:Sequence[str]) -> intExecute the sparse-checkout set command.
class
dulwich.cli.cmd_stashStash the changes in a dirty working directory away.
class
dulwich.cli.cmd_stash_listList stash entries.
method
dulwich.cli.cmd_stash_list.run(args:Sequence[str]) -> NoneExecute the stash-list command.
class
dulwich.cli.cmd_stash_popApply a stash and remove it from the stash list.
method
dulwich.cli.cmd_stash_pop.run(args:Sequence[str]) -> int | NoneExecute the stash-pop command.
class
dulwich.cli.cmd_stash_pushSave your local modifications to a new stash.
method
dulwich.cli.cmd_stash_push.run(args:Sequence[str]) -> NoneExecute the stash-push command.
class
dulwich.cli.cmd_statusShow the working tree status.
method
dulwich.cli.cmd_status.run(args:Sequence[str]) -> NoneExecute the status command.
class
dulwich.cli.cmd_stripspaceRemove unnecessary whitespace from text.
method
dulwich.cli.cmd_stripspace.run(args:Sequence[str]) -> NoneExecute the stripspace command.
class
dulwich.cli.cmd_submoduleInitialize, update or inspect submodules.
class
dulwich.cli.cmd_submodule_addAdd a submodule.
method
dulwich.cli.cmd_submodule_add.run(argv:Sequence[str]) -> NoneExecute the submodule-add command.
class
dulwich.cli.cmd_submodule_initInitialize submodules.
method
dulwich.cli.cmd_submodule_init.run(argv:Sequence[str]) -> NoneExecute the submodule-init command.
class
dulwich.cli.cmd_submodule_listList submodules.
method
dulwich.cli.cmd_submodule_list.run(argv:Sequence[str]) -> NoneExecute the submodule-list command.
class
dulwich.cli.cmd_submodule_updateUpdate submodules.
method
dulwich.cli.cmd_submodule_update.run(argv:Sequence[str]) -> NoneExecute the submodule-update command.
class
dulwich.cli.cmd_subtreeManage subtrees within a repository.
class
dulwich.cli.cmd_subtree_addAdd a subtree.
method
dulwich.cli.cmd_subtree_add.run(argv:Sequence[str]) -> NoneExecute the subtree-add command.
class
dulwich.cli.cmd_subtree_mergeMerge changes into a subtree.
method
dulwich.cli.cmd_subtree_merge.run(argv:Sequence[str]) -> NoneExecute the subtree-merge command.
class
dulwich.cli.cmd_subtree_pullPull changes from a remote repository into a subtree.
method
dulwich.cli.cmd_subtree_pull.run(argv:Sequence[str]) -> NoneExecute the subtree-pull command.
class
dulwich.cli.cmd_subtree_pushPush a subtree to a remote repository.
method
dulwich.cli.cmd_subtree_push.run(argv:Sequence[str]) -> NoneExecute the subtree-push command.
class
dulwich.cli.cmd_subtree_splitSplit a subtree into a separate branch.
method
dulwich.cli.cmd_subtree_split.run(argv:Sequence[str]) -> NoneExecute the subtree-split command.
class
dulwich.cli.cmd_switchSwitch branches.
method
dulwich.cli.cmd_switch.run(args:Sequence[str]) -> int | NoneExecute the switch command.
class
dulwich.cli.cmd_symbolic_refRead, modify and delete symbolic refs.
method
dulwich.cli.cmd_symbolic_ref.run(args:Sequence[str]) -> int | NoneExecute the symbolic-ref command.
class
dulwich.cli.cmd_tagCreate, list, delete or verify a tag object.
method
dulwich.cli.cmd_tag.run(args:Sequence[str]) -> NoneExecute the tag command.
class
dulwich.cli.cmd_unpack_objectsUnpack objects from a packed archive.
method
dulwich.cli.cmd_unpack_objects.run(args:Sequence[str]) -> NoneExecute the unpack-objects command.
class
dulwich.cli.cmd_update_refUpdate the object name stored in a ref safely.
method
dulwich.cli.cmd_update_ref.run(args:Sequence[str]) -> intExecute the update-ref command.
class
dulwich.cli.cmd_update_server_infoUpdate auxiliary info file to help dumb servers.
About this data
These signatures were extracted from the public source of dulwich/dulwich
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.