Rust referenceweave-loom
weave-loom · commands::import_git
Source declarations, signatures and documentation for commands::import_git.
Source: sigil/weave/tools/loom/src/commands/import_git.rs. SHA-256: 636fcb0cf670c0711a9711551fd6daf90088b6753bab21a179904b918a970d72.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
commands::import_git::ImportGitArgs
Arguments for loom import-git.
#[derive(Debug, clap::Args)]
pub struct ImportGitArgs {
/// Path to the source git repository.
pub source: PathBuf,
/// Branch name to materialize on the loom side (default: `main`).
#[arg(long, default_value = "main")]
pub branch: String,
/// Source git ref to import from (default: `HEAD`).
#[arg(long, default_value = "HEAD")]
pub source_ref: String,
/// Override the importing-agent DID (defaults to repo identity).
#[arg(long)]
pub author: Option<String>,
/// Abort on unsupported git entries (gitlinks, non-utf8 paths) instead
/// of silently skipping them.
#[arg(long)]
pub strict: bool,
/// Plan but don't write — useful for sizing an import.
#[arg(long)]
pub dry_run: bool,
/// Skip materialization of the working tree after import. By default
/// `loom import-git` writes the head commit's tree to disk so the
/// user has plaintext files immediately, matching the expected
/// "fresh clone" experience.
#[arg(long)]
pub no_materialize: bool
}Source line: 27.
commands::import_git::run
Execute loom import-git.
pub async fn run(args: ImportGitArgs) -> Result<()>;Source line: 61.