Comments (5)
Yes, the reference config file is used as the default. Can you elaborate on what seem inconsistent, I'm ready to work on the documentation. I just didn't catch what was missing (about section_regexps
)...
from gitchangelog.
@vaab: Consider the following config:
section_regexps = [
('', None)
]
This disables the sectioning under versions (no more "New", "Fixed" and "Changes" sections that come per default).
However, gitchangelog still strips the new:/fix:/chg: prefixes from the log entries. This is specified in the reference configuration file (https://github.com/vaab/gitchangelog/blob/master/gitchangelog.rc.reference#L77). Having a commit with message of:
New: test commit
Produces a changelog of:
- test commit. [Tuukka Mustonen]
"New" was snipped away, even though I didn't instruct so in my custom section_regexps
config.
from gitchangelog.
Oh well, nevermind, just found subject_process
. And I accidentally thought that regexps were specifying the replacing operation that snips the prefixes away. Stupid me.
So yeah, reference file is inherited as defaults, that can be overridden.
Nothing wrong here, I should just RTFM.
from gitchangelog.
Well, if you have suggestion about a place to add a note or a sentence that would have avoided you to fall in this trap, I would be grateful. I might wish to add it to the documentation of others.
For instance, I could clearly state in the comment documentation of gitchangelog.rc.reference
, above section_regexp
, that these are only classifying regexp and that they won't touch the actual summary that will get printed, so the user might want to look also at subject_process
if the subject needs some changes.
from gitchangelog.
Opened #40 to point out where the defaults come from.
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.