tomzx / php-semver-checker

Compares two source sets and determines the appropriate semantic versioning to apply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparing branches rather than filestore.

rquadling opened this issue · comments

Hi.

Purely as a WIBNI (Wouldn't It Be Nice If...), rather than comparing 2 physical paths, would it possible/feasible to be able to compare branches?

I'm working on a feature branch and want to know what semver options I need to deal with compared to the current dev branch.

Any one got any ideas on this? Has it already been rejected?

@rquadling Yes, it is possible to do this if you use git, see https://github.com/tomzx/php-semver-checker-git 😄

However, do be careful as this needs to checkout code at a specified version in order to build a comparison report (it is not built off git change history, but from files changes).

Thanks.