WIP git start create_orphan_branch()

This commit is contained in:
Sebastian Kuzminsky 2025-07-04 13:13:08 -06:00
parent 9d9a30d90a
commit f467e35ff2

View file

@ -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::*;