Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add example for empty commit message in git.commit() #696

Merged
merged 1 commit into from Dec 1, 2021

Conversation

steveukx
Copy link
Owner

@steveukx steveukx commented Dec 1, 2021

To use git.commit() without any -m messages in the generated command, use an empty array for the messages argument:

// an empty array is permitted in place of zero message string
const messages: string[] = [];

// or other selection of options as required for your purposes
const options: TaskOptions = { '--allow-empty': null };

git.commit(messages, options); 

Closes #694

@steveukx steveukx merged commit 617b87e into main Dec 1, 2021
@steveukx steveukx deleted the fix/empty-commits branch December 1, 2021 20:05
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.

git --amend --no-edit not supported/showing deprecation notice
1 participant