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

Multiple Drupal Versions? #62

Open
geerlingguy opened this issue May 19, 2015 · 4 comments
Open

Multiple Drupal Versions? #62

geerlingguy opened this issue May 19, 2015 · 4 comments

Comments

@geerlingguy
Copy link

Is it possible to make it so this project compiles info for arbitrary versions of Drupal Core? (e.g. 6.x, 7.x, 8.0.x, 9.0.x, etc.)

I think it'd be nice (especially considering this is by far the most used metric for core contributions I've seen passed around the community) if we can gain better insight to members of the community who have helped with past versions... and also be able to easily switch to the newer HEAD branch once 8.x versions are mainstream.

@mortenson
Copy link

While git doesn't make this easy, you could compile a list of commit hashes for each branch and then diff them going back to 6.x. i.e. 8.0.x commits are commits that are not found in 7.x, 7.x commits are diffed from 6.x, etc.

edit: The git way of doing this is git branch --contains <commit hash>, but you would have to do that for every commit in 8.0.x.

@lewisnyman
Copy link
Collaborator

That would be easy to create, see this line from json.rb:

log_args = ARGV[0] || '--since=2011-03-09'
git_command = 'git --git-dir=../drupalcore/.git --work-tree=drupal log 8.0.x ' + log_args + ' -s --format=%s'

@mortenson
Copy link

Ah, that would work as well for how Drupal is developed (ex: 7.x is never randomly merged into 8.0.x). So we would just keep track of the branch creation date and use that for --since.

@lauriii
Copy link
Owner

lauriii commented May 26, 2015

It would be also nice to see overall commit amount for contribs. I think we might need to get the database setup for this because this starts to get complicated

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

4 participants