ExasperatedCrab78 Such a git patch appeared to track a lot of unrelated unexecuted stuff. And was whimsical when being applied - it errored on all those unrelated code files as far as i could tell so i had to use --reject
in git apply --reject --whitespace=fix experiment-a1fbb0ecfc4e4d698e017d8356d8be52.patch
I get that this feature is probably coming from a robust reproducibility design perspective. If only there'd be a shortcut tho. For example, official Python
VSCode extension has this thing: you can execute select lines of code from a source file via Python Interactive
,and then one can export all the executed code into a standalone notebook (it will not have any other code from the source file).Gather
python VSCode extension does something similair but from notebooks: after you execute cells in the notebook it allows to export all the code that was necessary to execute that cell into a standalone notebook.
Both solutions do not stalk for changes in the whole package and personally i've found them quite enabling.
A good enough solution would be, i think, having an option of listing git diff for each file separately. So I could pick which files i wanna rollback via git apply