mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Avoid empty commits when saving #146

Closed szschaler closed 8 months ago

szschaler commented 8 months ago

Related to #140

Currently, saving creates a commit for each saveable panel, regardless of whether anything has actually changed. As a result, we are creating empty commits, which can be confusing to learners. We should only create commits that include the actually changed files and not create a commit at all if there is nothing to save.

It should be possible to use ACE's isClean/markClean functions in the UndoManager for this.

szschaler commented 8 months ago

Possibly also related to #139