We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f78187 commit d992c54Copy full SHA for d992c54
src/commands/patches.ts
@@ -221,7 +221,7 @@ abstract class CreatePatchCommandBase extends GlCommandBase {
221
untrackedPaths = (await git.status?.getUntrackedFiles())?.map(f => f.path);
222
if (untrackedPaths?.length) {
223
try {
224
- await git.staging?.stageFiles(untrackedPaths);
+ await git.staging?.stageFiles(untrackedPaths, { intentToAdd: true });
225
} catch (ex) {
226
Logger.error(ex, `Failed to stage (${untrackedPaths.length}) untracked files for patch`);
227
}
0 commit comments