Git Product home page Git Product logo

Comments (8)

llorllale avatar llorllale commented on July 24, 2024

This plugin provides includeCommitsAfter.

from maven-gitlog-plugin.

j-be avatar j-be commented on July 24, 2024

I'd really like the date range as proposed by @erikryverling. I know of the includeCommitsAfter, which is what I use currently, but since I only want to see commits of the last three months, I have to update that date every month or so, which is just annoying.

from maven-gitlog-plugin.

j-be avatar j-be commented on July 24, 2024

I would have liked something more flexible than this (e.g. being able to specify something like 2m4d for 2 months and 4 days), but since I did not find an easy way to parse such Strings - and I guess parsing them would be something for Apache's DateUtils, not this plugin - I went for the cheap "just pass a number of dates".

from maven-gitlog-plugin.

talios avatar talios commented on July 24, 2024

@j-be you could use java.time.Period#parse and strings like P2M and P56D etc.

from maven-gitlog-plugin.

j-be avatar j-be commented on July 24, 2024

@talios java.time.Period#parse is exactly what I would need, but it is a Java 8 feature, and the POM of this plugin sets the language level to 6. I'm not sure whether this is intended or just a leftover from long time ago - README.md doesn't mention. But I didn't want to mess with it.

To keep the possibility open, I introduced a parameter called includeCommitsDuringTheLastDays, which could later be deprecated in favor of a more generic includeCommitsDuringPeriod, backed by java.time.Period#parse.

from maven-gitlog-plugin.

talios avatar talios commented on July 24, 2024

@j-be Joda-Time could be an option then - altho adding a dependency for a single function kinda sucks.

from maven-gitlog-plugin.

j-be avatar j-be commented on July 24, 2024

@talios My thoughts exactly. After all: just the days is what was requested in the first place.

from maven-gitlog-plugin.

danielflower avatar danielflower commented on July 24, 2024

Just merged the pull request, thanks. Released in version 1.13.17

from maven-gitlog-plugin.

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.