-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
option to include the --force when performing git add by default. #875
base: main
Are you sure you want to change the base?
Conversation
Force the add
|
@@ -16,7 +16,7 @@ export interface SimpleGitBase { | |||
/** | |||
* Adds one or more files to source control | |||
*/ | |||
add(files: string | string[], callback?: types.SimpleGitTaskCallback<string>): Response<string>; | |||
add(files: string | string[], force: bool = false, callback?: types.SimpleGitTaskCallback<string>): Response<string>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a breaking change, why not introducing an optional options
after the callback
instead?
Also, is the default value allowed in this context?
ability to do
git add -f <file1> <file2>