Modify

Ticket #261 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

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:1 Changed 6 years ago by thomas

  • Milestone set to 0.2.6

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.

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.
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.