Previous: Skeleton Parameters, Up: Automatic ChangeLogs


Normally, you don't modify source files when working with Patcher. However, ChangeLog files need update and saving in automatic mode. Patcher provides two hooks for plugging in additional processing on ChangeLog files.

Now you're wondering what you could possibly use these two options for (apart from ringing the terminal bell I mean), and you're right. In fact, their existence comes from my desire to support Git projects by index.

If you look at patcher-built-in-themes, you will find two themes for Git (along with their their whitespace-cleaning counterpart): git and git-index. The git-index one will only work on what's in the Git staging area. This is cool as long as ChangeLog files are written by hand see Manual ChangeLogs. However, in automatic mode, we need a way to add them to the index once the skeletons are filled in. This is done by another built-in theme that you must add explicitly to your project, called git-index-automatic-change-logs. This theme uses the two options described above to automatically add ChangeLog entries to the staging area.