Modify ↓
Ticket #261 (closed enhancement: fixed)
Option to make 'changelog diff' include differences in ChangeLog file
| Reported by: | tim@… | Owned by: | thomas |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.2.6 |
| Component: | moap | Version: | TRUNK |
| Keywords: | Cc: |
Description
I'd like an option (~/.moaprc? environment variable?) to make moap changelog diff show the ChangeLog? entry to be added too. I believe this leads to better ChangeLog? entries, since it makes people re-read their text when they do the final commit check (at least I often found myself changing an entry before commit when re-checking it with the old diffcl).
Or instead of an option, maybe make this the default behaviour and add a new 'changelog patchdiff' command that excludes the ChangeLog? entry?
Attachments
Change History
comment:2 Changed 6 years ago by thomas
- Status changed from new to closed
- Resolution set to fixed
(In [309]) * moap/command/cl.py:
- moap/test/test_commands_cl.py: Output the ChangeLog? entry before the diff. This should help people write better ChangeLog? entries because they see it before committing. Can be disabled with the -E option. Fixes #261.
Note: See
TracTickets for help on using
tickets.

Actually, looks like I can put whatever text I want in front of the diff, so I'll make this the default behaviour, with a -E option to turn off showing the ChangeLog? entry.