Skip to content

Fix state changes when cancelling push - #28

Open
Brenisdone wants to merge 1 commit into
Bhupesh-V:masterfrom
Brenisdone:feature
Open

Brenisdone wants to merge 1 commit into
Bhupesh-V:masterfrom
Brenisdone:feature

Conversation

@Brenisdone

Copy link
Copy Markdown

Summary

  • Read the commit message before copying dotfiles or staging repository changes.
  • Abort if the commit message is empty.
  • Prevent repository changes when the commit-message input is cancelled with Ctrl+C.

Testing

  • Verified that pressing Ctrl+C at the commit-message prompt leaves the repository unchanged and creates no commit.
  • Verified that entering a commit message and pressing Ctrl+D successfully copies, stages, and commits the changed dotfile.
  • Verified Bash syntax with bash -n dotman.sh.

Fixes #16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

changed git state when user cancels operation

1 participant