Skip to main content

Module changes

Module changes 

Source
Expand description

What the Changes panel compares: the files that say what a project is and how its analysis was done (session.json, pipeline.json, project.json), read and normalised, and what they are compared against (Baseline). kitchen-shell’s ChangesPanel draws the diffs.

Enums§

Baseline
What the watched files are compared against.

Functions§

git_head
The file in the last commit of the repository it is in (None when it is not in one, or not committed).
is_json
Whether path is JSON (compared by key, not by line order).
normalise
text as pretty JSON with sorted keys when it is JSON, else as is (so a proposal and the file compare line by line, and the accepted hunks make a valid file).
read
The file’s text (empty when it cannot be read) and when it was last modified.