diff --git a/assets/demo.gif b/assets/demo.gif index c18692b..0a9df03 100644 Binary files a/assets/demo.gif and b/assets/demo.gif differ diff --git a/assets/demo.tape b/assets/demo.tape index d62a75f..cab9328 100644 --- a/assets/demo.tape +++ b/assets/demo.tape @@ -13,7 +13,7 @@ Set Shell fish Hide Type "cd $(mktemp -d -t git-squad.XXXX)" Enter -Type "mv ~/.config/git-squad/buddies.yaml ~/.config/git-squad/buddies.yaml.bup" +Type "mv ~/.config/git-squad/buddies.toml ~/.config/git-squad/buddies.toml.bup" Enter Type "git-squad alone" Enter @@ -83,7 +83,7 @@ Sleep 500ms Type "git commit" Enter Escape -Type "O" +Type "i" Type "work on file with peter and wendy" Escape Sleep 500ms @@ -95,7 +95,8 @@ Enter Sleep 5s Hide -Type "mv ~/.config/git-squad/buddies.yaml.bup ~/.config/git-squad/buddies.yaml" +Type "mv ~/.config/git-squad/buddies.toml.bup ~/.config/git-squad/buddies.toml" Enter Type "git-squad alone" Enter +Sleep 3s diff --git a/src/git.rs b/src/git.rs index 54a4980..603ac9e 100644 --- a/src/git.rs +++ b/src/git.rs @@ -126,11 +126,7 @@ pub fn update_commit_template(active_buddies: &Buddies) -> Result<()> { // Add our section with co-authors if needed if !active_buddies.buddies.is_empty() { - if !new_content.is_empty() { - new_content.push('\n'); - } - - new_content.push('\n'); + new_content.push_str("\n\n"); new_content.push_str(BEGIN_MARKER); new_content.push('\n');