From f467e35ff257c8b38ec895989a8d71b3ac726e81 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Fri, 4 Jul 2025 13:13:08 -0600 Subject: [PATCH] WIP git start create_orphan_branch() --- src/git.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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::*;