Comments (4)
Ok, for some reason you have extra tags in your commits. Supporting this case is something I'm ready to implement in gitchangelog
. Can you provide me with a sample git log
of 2 or 3 representative commit ?
If you are not a git guru::
git log -n 3
... might just give the output I need.
This seems to be related to using git-review
, probably because you are using Gerrit
.
As a possible a quick work-around, you might want to try to modify your .gitchangelog.rc
add use this filter (replace the existing body_process = noop
line with this one):
body_process = ReSub(r'(\n[A-Z]\w+(-\w+)*: .*)+$', r'') | strip
If this is okay with you, I'll probably set it as the default in the reference file.
from gitchangelog.
First of all: brilliant tool!
No, I'm not a git guru of any kind:
% git log -n 3
commit e1b66190cf9fc222761981c4fe8e844157b78cb2
Author: Lars Stavholm <[email protected]>
Date: Sun Mar 8 12:59:53 2015 +0100
Doco update.
Change-Id: Ib81c683769d31a1b4923df0f2ec937b2ad22f04a
commit 4549a0086a8eeaff6fdfe1160e026dc414a11785
Author: Lars Stavholm <[email protected]>
Date: Sun Mar 8 07:08:01 2015 +0100
Rearranged rack files.
Change-Id: I2a31001299c283d23b69db1622aec633e891abaa
commit f0bdeb4883bc7a2a44b37f9503bb1f1c85d489d7
Author: Lars Stavholm <[email protected]>
Date: Sun Mar 8 07:07:31 2015 +0100
Updated.
Change-Id: I6aa8fd0c479617257f6325b1ca16366ec582bbe3
Yes, we're using gerrit.
The new body_process
definition didn't help a whole lot:
% gitchangelog
Changelog
=========
0.3.0 (2015-03-08)
------------------
- Doco update. [Lars Stavholm]
Change-Id: Ib81c683769d31a1b4923df0f2ec937b2ad22f04a
- Rearranged rack files. [Lars Stavholm]
Change-Id: I2a31001299c283d23b69db1622aec633e891abaa
- Updated. [Lars Stavholm]
Change-Id: I6aa8fd0c479617257f6325b1ca16366ec582bbe3
[snip]
from gitchangelog.
Thanks, this should be it:
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*)+$', r'') | strip
Can you tell me if this works on your end ?
from gitchangelog.
And it is!
We haven't started using the keywords chg
, new
, etc, but it looks really good already, thank you
Changelog
=========
0.3.0 (2015-03-08)
------------------
- Doco update. [Lars Stavholm]
- Rearranged rack files. [Lars Stavholm]
- Updated. [Lars Stavholm]
- Cosmetic. [Lars Stavholm]
- Added spare parts from 81-Z5. [Lars Stavholm]
- Cosmetic. [Lars Stavholm]
- Re-added. [Lars Stavholm]
- Rubbish. [Lars Stavholm]
- Closed #162. [Lars Stavholm]
- Bug fix: added missing weballoc templates dir. [Lars Stavholm]
- Bug fix: added missing rack files in packaging. [Lars Stavholm]
0.2.0 (2015-03-03)
------------------
- Doco update. [Lars Stavholm]
- Spare parts list. [Elias Johnstone]
- Improved scanning and loading of database. Tweaked first page. [Lars
Stavholm]
[snip]
How can I remove the extra newlines? I'd like something like:
Changelog
=========
0.3.0 (2015-03-08)
------------------
- Doco update. [Lars Stavholm]
- Rearranged rack files. [Lars Stavholm]
- Updated. [Lars Stavholm]
- Cosmetic. [Lars Stavholm]
- Added spare parts from 81-Z5. [Lars Stavholm]
- Cosmetic. [Lars Stavholm]
- Re-added. [Lars Stavholm]
- Rubbish. [Lars Stavholm]
- Closed #162. [Lars Stavholm]
- Bug fix: added missing weballoc templates dir. [Lars Stavholm]
- Bug fix: added missing rack files in packaging. [Lars Stavholm]
0.2.0 (2015-03-03)
------------------
- Doco update. [Lars Stavholm]
- Spare parts list. [Elias Johnstone]
- Improved scanning and loading of database. Tweaked first page. [Lars Stavholm]
[snip]
from gitchangelog.
Related Issues (20)
- [WinError 2] The system cannot find the file specified HOT 3
- ignore_regexps doesnt match against whole message, only subject
- regexp filter skipping matches
- Added an AUR package.
- Update Readme to include basic full example. HOT 2
- Exception with FileInsertIntoFirstRegexMatch HOT 2
- pystache missing as dependency? HOT 2
- UnicodeEncodeError character maps to undefined HOT 7
- Support for pre-commit
- How to show changelog since certain commit? HOT 1
- Use branch name for section categorisation HOT 1
- test failures caused by 3.0.4 package missing test/__init__.py
- Is this project still maintained ? HOT 2
- Slow execution on big repositories under Cygwin HOT 8
- Enhancement Request: Multi-package repo support HOT 1
- Request: drop d2to1
- Offering to help with the project HOT 6
- Branch tags are erroneously included into change log
- Changelog usage?
- Incorrect gitchangelog format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitchangelog.