Heya,
I want my Git tool (GitKraken) to show me the differences between what I have on ‘my local branch’ compared to what I’m fetching from the HubSpot account (Design Tools).
Lets say I just did a fresh upload to the account so that what I have locally on my machine is 1:1 with what’s in the Design Tools theme folder.
What I expected: if I change code lines inside Design Tools and press “Publish changes” I should be getting those changes if I run hs fetch, and those changes would appear in GitKraken as “unstages changes”/new/changed stuff.
What actually happens: I modify code lines in the Design Tools, but when I fetch I don’t get those changes. No changes picked up in GitKraken and no trace of the modified code lines locally in the file in question.
The documentation only claim to fetch files or directory with child folders/files, and it doesn’t overwrite existing files without using the --overwrite flag. Issue is that using the --overwrite does the overwriting, but in the act it also provide its own take on formatting… which to a Git tool looks like ‘everything’ has changed. Making it impossible to determine what changes was done directly inside the Design Tools compared to what I have locally.
Am I wrong to expect hs fetch to provide me a way to see potential changes that only were made via the Design Tools? I need a way to detect potential changes between my local project and the uploaded project.
--overwrite only seems to overwrite the module’s ‘fields.json’ and ‘meta.json’ for whatever reason. Never the .css or .js files. So I take it that the “design-tool-formatting” only ‘modify’ those files (e.g. adding ’ “display_width” : null, ’ etc that is not present (or needed) locally.
*don’t misunderstand me; I don’t want these files to show up as changes regardless (unless they actually differ)
That, and all images uploaded via the theme
Does the Design Tool have a History log that can list all “manual actions” done via the Design Tool by any chance?
I see that if I close all “tabs” inside the Design Tools there is a “Recently edited files”, but it won’t show me what html/css lines or field properties that have been changed.
I’ve found that there is something called ‘Revision History’, but it won’t show as an option when right clicking the theme/project folder in the Design Tools - it will only appear as an option if I right click a specific file… and that doesn’t really help as that would require me to go through
-every- file in the Design Tool project and check if *someone* has done a manual edit since last ‘official hs upload’.
And even then, the revision won’t show me specificly what has changed, only that *something* has changed. (no red markers in css/html/js, or notes that field(s) have changed)
