morucci / repoxplorer

RepoXplorer - Git stats explorer
Apache License 2.0
116 stars 24 forks source link

Add --all-branches option to repoxplorer-github-organization #62

Closed evangineer closed 3 years ago

evangineer commented 4 years ago

Where there are multiple branches in a repo, I would like to have an option for repoxplorer-github-organization to include all the branches in the generated definition file.

Any suggestions re: how to automatically get all the branches for a repo into the definitions file?

evangineer commented 4 years ago

Have been playing around with the underlying github3.py library used by repoXplorer and have written some proof of concept code that can list out all the branches for a given repo.

Will have a go at hacking repoxplorer-github-organization to add that functionality.

Perhaps add an --all-branches option which uses the modified code.

evangineer commented 4 years ago

@morucci One concern that has come up with the notion of adding an --all-branches option is the possibility of double-counting commits.

Any thoughts regarding that?

morucci commented 4 years ago

No, commits are indexed with the sha as uid. If a sha appears in multiples branches, the commit will be flagged by the indexer to be part of multiple refs. A ref is repo-name:branch. So there's no possibility of double counting commits.

evangineer commented 4 years ago

Thanks @morucci, I'm digging into the repoxplorer-github-organization code now!

evangineer commented 3 years ago

Satisfied by #64