Skip to content

Commit

Permalink
Add removed files to git commit
Browse files Browse the repository at this point in the history
Resolves: #446
  • Loading branch information
ggodlewski authored and horner committed Mar 9, 2024
1 parent 64bda32 commit 6261fe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/ui/src/components/GitCommit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,22 @@ export default {
await disableElement(event, async () => {
const filePaths = [];
const removeFilePaths = [];
for (const checkedFileName of checkedFileNames) {
const change = this.gitChanges.find(change => change.path === checkedFileName);
if (!change?.state?.isDeleted) {
filePaths.push(checkedFileName);
} else {
removeFilePaths.push(checkedFileName);
}
}
await this.commitBranch({
branch,
message: this.commitMsg,
filePaths: filePaths,
removeFilePaths: []
removeFilePaths
});
this.commitMsg = '';
});
Expand Down

0 comments on commit 6261fe2

Please sign in to comment.