| Summary: | RFC: Remove empty lines (containing only whitespace) when merging entries for a change in the same file, but different function. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Severin Gehwolf <sgehwolf> | ||||
| Component: | ChangeLog | Assignee: | Phil Muldoon <pmuldoon> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | jjohnstn, linux.changelog-inbox | ||||
| Version: | 0.7.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Severin Gehwolf
(In reply to comment #0) > Created an attachment (id=184363) [details] > Patch implementing the proposed functionality (including a test for it). > > Imagine the following existing ChangeLog: > > 2010-12-02 Some Author <will@example.com> > > * path/to/fileA.c (main): Some change. > <= here is a tab > * path/to/fileB.c: New file. > > 2010-10-08 Author B <b@bull.com> > > .... > > When merging a new change in function "myfunction" on the same day in fileA.c > current code would produce: > > 2010-12-02 Some Author <will@example.com> > > * path/to/fileA.c (main): Some change. > > (myfunction): > * path/to/fileB.c: New file. > > 2010-10-08 Author B <b@bull.com> > > .... > > The with the proposed patch applied the code produces (note the removed "empty" > line): > > 2010-12-02 Some Author <will@example.com> > > * path/to/fileA.c (main): Some change. > (myfunction): > * path/to/fileB.c: New file. > > 2010-10-08 Author B <b@bull.com> > > .... > > Patch including a test for this is attached. Let me know what you think. > Thanks! Sure, it obviously doesn't regress your other tests, so go ahead. Committed (Revision 27091). Closing this bug. |