Description
As discussed in this closed PR: #271
I believe that it would make sense to allow the ability to perform branch normalisation when calling GitVersion with /output json
. Currently, within my psake script, I have to call GitVersion twice, once with /output buildserver
to perform the branch normalisation, and set the build number, and then again with /output json
so I can get the GitVersion variables to use later within my psake script.
I believe that allowing something like:
/output json /normalisebranches
would be a great additional switch to add to GitVersion to prevent the need to call it twice.
If this flag addition is not liked, then I believe that at the very least, when calling /output buildserver
the json output should also be included, so that the variables can be parsed and used.