WIP git start create_orphan_branch()
This commit is contained in:
parent
9d9a30d90a
commit
f467e35ff2
1 changed files with 12 additions and 0 deletions
12
src/git.rs
12
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::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue