gitwrap/clone/mod.rs
1use crate::wrap_command::WrapCommand;
2use crate::git;
3
4mod options;
5pub use options::*;
6
7mod custom;
8pub use custom::*;
9
10pub const GIT_COMMAND: &str = "clone";
11
12/// Clones a repository into a newly created directory,
13/// creates remote-tracking branches for each branch in the cloned repository,
14/// and creates and checks out an initial branch that is forked from the cloned repository’s currently active branch
15/// [Git doc](https://git-scm.com/docs/git-clone)
16pub fn clone() -> WrapCommand {
17 git(GIT_COMMAND)
18}