Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize the format of the History.md file ? #677

Closed
matzew opened this issue Nov 3, 2017 · 2 comments
Closed

Customize the format of the History.md file ? #677

matzew opened this issue Nov 3, 2017 · 2 comments

Comments

@matzew
Copy link

matzew commented Nov 3, 2017

Hi,

I generally like the style of the git-changelog, like:
https://github.com/tj/git-extras/blob/master/History.md

But, I was wondering what's the best way to customize it ?

I am interested in having the short hash of the commit at the end of the line, like:

* the commit message subject (the-hash)

Any thoughts ?

@spacewander
Copy link
Collaborator

You could use git config changelog.format $format and git config changelog.mergeformat $format to customize the changelog format. The format string $format will be passed to git log --pretty=format:xxx. The default value of them are * %s and * %s%n%w(64,4,4)%b.

@spacewander
Copy link
Collaborator

I updated the doc in commit 46bc095. Please reopen this issue if you still have question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants