From fef0e091b5db167b954d5f4f978bc507991969c3 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Mon, 4 Nov 2024 16:51:09 +0000 Subject: [PATCH] Ignore commitFile if contents are identical --- gui/src/app/Project/ProjectReducer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/app/Project/ProjectReducer.ts b/gui/src/app/Project/ProjectReducer.ts index 1a0d04f..20243ce 100644 --- a/gui/src/app/Project/ProjectReducer.ts +++ b/gui/src/app/Project/ProjectReducer.ts @@ -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,