1#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
2#![deny(missing_docs)]
3#![warn(rustdoc::unescaped_backticks)]
4
5pub mod porcelain;
129pub mod progress;
130
131pub mod prelude {
148 pub use crate::command_runner::{CommandRunner, RecordingRunner, SystemCommandRunner};
149 pub use crate::config::ConfigSet;
150 pub use crate::diagnostics::{
151 CollectingDiagnostics, DiagnosticSink, NullDiagnostics, Trace, Warning,
152 };
153 pub use crate::environment::{Environment, RepositoryOptions};
154 pub use crate::error::{Error, MidxError, Result};
155 pub use crate::index::Index;
156 pub use crate::objects::odb::Odb;
157 pub use crate::objects::{Object, ObjectId, ObjectInfo, ObjectKind};
158 pub use crate::repo::{
159 resolve_initial_branch, DiscoveryInfo, InitOptions, InitOutcome, Repository,
160 RepositoryBuilder,
161 };
162}
163
164pub mod revwalk;
165pub mod stash;
166
167pub mod apply;
168pub(crate) mod attributes;
169pub mod blame;
170pub(crate) mod bloom;
171pub(crate) mod branch_inventory;
172pub(crate) mod branch_tracking;
173pub mod bundle;
174pub(crate) mod bundle_remote;
175pub(crate) mod bundle_uri;
176pub mod change_id;
177pub(crate) mod check_ref_format;
178pub(crate) mod clone;
179pub(crate) mod combined_diff_patch;
180pub(crate) mod combined_tree_diff;
181pub mod command_runner;
182pub mod commit;
183pub(crate) mod commit_encoding;
184pub(crate) mod commit_graph_file;
185pub(crate) mod commit_graph_write;
186pub(crate) mod commit_pretty;
187pub(crate) mod commit_trailers;
188pub mod config;
189pub(crate) mod connectivity;
190pub(crate) mod credentials;
191pub(crate) mod crlf;
192pub(crate) mod delta_encode;
193pub(crate) mod delta_islands;
194pub(crate) mod delta_search;
195pub mod diagnostics;
196pub mod diff;
197pub(crate) mod diff_indent_heuristic;
198mod diff_rename_parallel;
199pub(crate) mod dotfile;
200pub(crate) mod environment;
201pub mod error;
202mod ewah_bitmap;
203pub(crate) mod git_dir;
204pub mod gitbutler;
205pub(crate) mod github_auth;
206pub(crate) mod grit_server_auth;
207pub(crate) mod line_interner;
208pub mod line_range;
209mod oid_abbrev;
210pub(crate) mod oid_abbrev_cache;
211pub(crate) mod pack_roll_delta;
212pub(crate) mod partial_clone;
213
214#[path = "bench_fixture/mod.rs"]
215mod bench_fixture_root;
216pub(crate) mod bitmap_walk;
217pub(crate) mod fetch;
218pub(crate) mod fetch_head;
219pub(crate) mod fetch_negotiator;
220mod fetch_request;
221pub(crate) mod filter_process;
222pub(crate) mod fmt_merge_msg;
223pub(crate) mod fs_publish;
224pub(crate) mod fs_readonly;
225pub(crate) mod fsck;
226pub(crate) mod fsck_msg_policy;
227pub(crate) mod fsck_standalone;
228#[path = "fsmonitor.rs"]
229mod fsmonitor_root;
230pub(crate) mod gc;
231pub(crate) mod git_binary_base85;
232pub(crate) mod git_date;
233pub(crate) mod git_path;
234pub(crate) mod gitmodules;
235pub(crate) mod hash;
236pub(crate) mod hide_refs;
237#[path = "history/mod.rs"]
238mod history_root;
239pub(crate) use history_root as history;
240pub(crate) mod alternate_boundary;
241pub(crate) mod atomic_replace;
242pub(crate) mod hooks;
243pub mod ident;
244pub(crate) mod ident_config;
245pub(crate) mod ident_resolve;
246pub(crate) mod ignore;
247pub mod index;
248mod index_eoie_ieot;
249pub(crate) mod index_name_hash_lazy;
250pub(crate) mod index_pack;
251pub(crate) mod init_filesystem;
252pub(crate) mod interpret_trailers;
253pub mod list_limit;
254pub(crate) mod local_object_copy;
255pub mod lockfile;
256pub(crate) mod log_walk;
257pub(crate) mod mailmap;
258pub mod maintenance;
259pub(crate) mod mem_pipe;
260pub(crate) mod merge_base;
261pub(crate) mod merge_diff;
262pub(crate) mod merge_driver;
263pub(crate) mod merge_file;
264pub(crate) mod merge_trees;
265pub(crate) mod midx;
266pub(crate) mod midx_error;
267pub(crate) mod net_trace;
268pub mod notes;
269#[path = "object_inspect.rs"]
270mod object_inspect_root;
271pub mod objects;
272pub(crate) mod odb;
273pub(crate) mod offload;
274pub mod operation;
275pub(crate) mod pack;
276pub(crate) mod pack_bitmap;
277mod pack_delta;
278mod pack_delta_walk;
279mod pack_fsck_verify;
280mod pack_index;
281pub(crate) mod pack_index_build;
282mod pack_map;
283pub(crate) mod pack_name_hash;
284pub(crate) mod pack_object_select;
285pub(crate) mod pack_objects;
286pub(crate) mod pack_receive;
287#[path = "pack_reuse.rs"]
288mod pack_reuse_root;
289pub(crate) mod pack_rev;
290pub(crate) mod pack_store;
291pub(crate) mod pack_stream_scan;
292mod pack_thin_bases;
293#[path = "pack_write.rs"]
294mod pack_write_root;
295pub(crate) mod pack_zlib;
296pub mod parallel;
297pub(crate) mod patch_ids;
298pub(crate) mod path_icase;
299pub(crate) mod path_population;
300pub mod path_validate;
301pub mod pathspec;
302pub(crate) mod pkt_line;
303pub(crate) mod precompose_config;
304pub(crate) mod promisor;
305pub(crate) mod promisor_fetch;
306pub(crate) mod promisor_remote;
307pub(crate) mod protocol;
308pub(crate) mod protocol_v2;
309pub(crate) mod prune_packed;
310pub(crate) mod push;
311pub(crate) mod push_bundle;
312pub(crate) mod push_report;
313#[path = "quote_path.rs"]
314mod quote_path_root;
315mod read_dir_kind;
316pub(crate) mod receive_pack;
317pub(crate) mod receive_quarantine;
318pub(crate) mod ref_namespace;
319pub(crate) mod ref_storage;
320pub(crate) mod reflog;
321pub mod refs;
322pub(crate) mod refs_fsck;
323pub(crate) mod refspec;
324pub(crate) mod reftable;
325pub mod remote;
326pub(crate) mod repack_pack;
327pub mod repo;
328pub(crate) mod repo_caches;
329pub mod repo_handles;
330#[doc(hidden)]
331pub mod repo_relpath;
332pub(crate) mod rerere;
333pub(crate) mod resolve_undo;
334pub(crate) mod resumable;
335pub(crate) mod rev_list;
336pub(crate) mod rev_list_error;
337pub(crate) mod rev_parse;
338pub(crate) mod rev_parse_error;
339pub(crate) mod serve;
340pub(crate) mod shallow;
341pub(crate) mod shared_repo;
342pub(crate) mod sideband_lines;
343pub(crate) mod signing;
344pub(crate) mod snapshot_checkout;
345pub(crate) mod sparse_checkout;
346pub(crate) mod split_index;
347pub mod state;
348pub(crate) mod stripspace;
349pub(crate) mod submodule_gitdir;
350pub(crate) mod terminal;
351pub(crate) mod textconv_cache;
352pub(crate) mod trace;
353mod tracked_path_tree;
354pub(crate) mod transfer;
355pub(crate) mod transport;
356pub(crate) mod transport_path;
357pub mod tree_sha256;
358pub(crate) mod unicode_normalization;
359pub(crate) mod unpack_objects;
360pub(crate) mod untracked_cache;
361pub(crate) mod upload_filter;
362pub(crate) mod url_rewrite;
363pub(crate) mod userdiff;
364pub(crate) mod wildmatch;
365pub mod worktree;
366mod worktree_batch;
367pub(crate) mod worktree_cwd;
368pub(crate) mod worktree_ref;
369pub(crate) mod worktree_rules;
370mod worktree_rules_tests;
371mod worktree_scan;
372pub use crate::hooks::{HookName, PostOperationHooks};
373#[cfg(test)]
374pub use crate::porcelain::checkout::{checkout_spool_probe_count, reset_checkout_spool_probe};
375pub use worktree_scan::PARALLEL_STAT_MIN_ENTRIES;
376#[doc(hidden)]
377pub use worktree_scan::{
378 reset_worktree_metadata_probe, worktree_metadata_probe_count, worktree_path_resolve_probe_count,
379};
380pub(crate) mod write_tree;
381pub(crate) mod ws;
382pub(crate) mod zlib_inflate;
383
384#[doc(hidden)]
385pub mod fuzz;
386
387pub use ref_storage::RefStorageFormat;
388
389pub use crate::oid_abbrev::OidAbbrevBatch;
390pub use objects::bench_fixture;
391pub use objects::pack_reuse;
392pub use objects::pack_write;
393pub use porcelain::quote_path;
394pub use revwalk::object_inspect;
395pub use worktree::fsmonitor;
396
397#[cfg(feature = "unstable-bench-helpers")]
398pub use pack_receive::{read_sideband_pack_to, PackReceiveTarget};
399
400#[cfg(test)]
401pub(crate) mod hot_path_test_metrics;
402
403#[cfg(test)]
404mod object_write_regression;
405#[cfg(test)]
406mod repository_config_snapshot_tests;
407#[cfg(test)]
408mod status_clean_tree_regression;