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

Only commits after some commitish #23

Open
rubberduck203 opened this issue Nov 14, 2020 · 0 comments
Open

Only commits after some commitish #23

rubberduck203 opened this issue Nov 14, 2020 · 0 comments

Comments

@rubberduck203
Copy link
Owner

rubberduck203 commented Nov 14, 2020

Similar to the date filter, allow users to specify a commit hash and only return commits after that one.

Examples

gitnstats --commit-filter 316d76d8602a62454c4eb7ad5716e8b49883efcb
gitnstats --commit-filter 316d76d
gitnstats -c 316d76d

I think the -c and -d options should be mutually exclusive, but I'm not 100% sure.

I also need to carefully consider what to do with branches.
Consider the following history.

    /----b-----c----\
---/--a-----d--------\---e

If the user requests commits that occurred after d, should b and c be returned, as they were merged after d?
Or should just c be counted?

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

1 participant