Code Monkey home page Code Monkey logo

Comments (4)

vaab avatar vaab commented on May 27, 2024

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.

LarsStavholm avatar LarsStavholm commented on May 27, 2024

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.

vaab avatar vaab commented on May 27, 2024

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.

LarsStavholm avatar LarsStavholm commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.