September 12, 2019

Sometimes I want to copy a feature from one project to another. I can pretty easily move the code by making a patch, cherry-picking some commits, or, in case the target project is too different from the source project, just viewing the commits and making similar changes in the target project.

However, there are sometimes changes that don’t appear in the git history because they take place outside of the codebase, for example, on the command line (like running a bunch of images through pngcrush), or on a website (like using an online CSS to SASS converter).

I have started documenting these in a file called devlog.txt at the root of each project. Then, when I go back and look at a commit, the diff shows some new lines in the devlog that are related to the code changes and otherwise would have been lost.