diff --git a/src/git.rs b/src/git.rs index 4fb8ee4..3ca250f 100644 --- a/src/git.rs +++ b/src/git.rs @@ -34,6 +34,18 @@ pub fn remove_worktree(worktree_dir: &std::path::Path) -> Result<(), GitError> { Ok(()) } +pub fn create_orphan_branch(branch: &str) { + // git checkout --orphan orphan-branch + // git rm -rf . + // git clean -fdx . + // + // echo "hello world" > test-file + // git add test-file + // git commit -m 'first commit, again' + // + // git checkout dev +} + #[cfg(test)] mod tests { use super::*;