Skip to content

Commit

Permalink
Ignore commitFile if contents are identical
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Nov 4, 2024
1 parent 5c88cc6 commit fef0e09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/src/app/Project/ProjectReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ const ProjectReducer = (s: ProjectDataModel, a: ProjectReducerAction) => {
return { ...s, ephemera: newEphemera };
}
case "commitFile": {
if (s[a.filename] === s.ephemera[a.filename]) {
return s;
}
const newState = { ...s };
const newDataSource = confirmDataSourceForCommit(
s.meta.dataSource,
Expand Down

0 comments on commit fef0e09

Please sign in to comment.