git_sprout/lib.rs
1// ABOUTME: Entry point shared by the git-sprout and git-worktree-fast binaries.
2// ABOUTME: Dispatches the `add` subcommand and delegates everything else to git.
3
4use std::process::ExitCode;
5
6pub mod delegate;
7
8/// Runs the tool with the given argv tail (everything after the program name).
9pub fn run(args: Vec<std::ffi::OsString>) -> ExitCode {
10 delegate::worktree_add(&args)
11}