github / git-sizer

Compute various size metrics for a Git repository, flagging those that might cause problems
MIT License
3.48k stars 139 forks source link

Allow the user to select exactly which references to include in the analysis #75

Closed mhagger closed 3 years ago

mhagger commented 3 years ago

It would often be convenient to select exactly which references should be used as starting points when enumerating objects for analysis. We already have --branches, --tags, and --remotes to cause those types of references to be included. But what about

This PR adds four new options that make it possible to select arbitrary subsets of references:

I still need to add tests.

mhagger commented 3 years ago

This could use more integration testing, but it does have unit tests and I've tested it manually, so I think it's GTG.

mhagger commented 3 years ago

I added an integration test after all. Wenn schon, denn schon.