-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
git --version should output 32 or 64-bit. #846
Comments
This sounds like a useful enhancement, although I'm not sure if it's a good idea to add that to the main output string since tools/scripts could well be relying on the current format. Adding a line to the
@dscho, do you have an opinion/preference on which way this should go? I'm willing to create a pull request and run with it. |
@landstander668 A PR would be lovely! I have a strong preference to |
I think it would be worthwhile, in the version string, as long as the 32/64 bit indication is near the end. Remember that when a dev has added his new patches, compiled (and tested) his updated version the string will also have appended the -g suffix, so a variable (changing) version string is nothing unusual |
Hmm, good point @dscho - the architecture can be different but the underlying code is the same, so the version should be the same. |
It'll probably be a few days due to work constraints, but I'll get to work on this shortly. Unless someone beats me to it, of course. (-; |
I would like to remind everyone that developers are not necessarily male. The first software developers were all female, as a matter of fact. This is something I care about deeply, so please refrain from using the male pronoun to refer to software developers.
I would really rather have this feature as a In addition, I would really like to caution that certain tools (most prominently, IDEs such as Visual Studio) rely on a certain format. We should not break those expectations on a whim. |
@dscho You mentioned the Currently all it contains (for me) is:
It's not an "install option" that was chosen during installation, but it was an option chosen by the user when they downloaded the installer, and it seems relevant in any case. |
Sorry for the delay, but work has finally calmed down enough for me to followup on this issue. I've just submitted Pull Request #866, which contains a (very preliminary) patch adding build platform to the I may be adequate for the needs of Git for Windows at this point (although the output might need some tweaking), but requires additional work before it will be ready for inclusion upstream. |
Thanks @landstander668 for your excellent contribution! It is now live, in v2.10.0. |
With the addition of the architecture (x86/x86_64) to git --version --build-options, it's good to add that to the Git version question. On the Windows version question, prompted for "Vista, 7, 8, 10? to indicate exactly what we're talking about. Also added `cmd.exe /c ver` as a command to run to get the Windows version, and `cat /etc/install-options.txt` and several alternative CMD commands to provide information on build options. Relevant Links: This is part of git-for-windows#847. The git --version --build-options change discussion is at git-for-windows#846 Signed-off-by: Clive Chan <[email protected]>
With the addition of the architecture (x86/x86_64) to git --version --build-options, it's good to add that to the Git version question. On the Windows version question, prompted for "Vista, 7, 8, 10? to indicate exactly what we're talking about. Also added `cmd.exe /c ver` as a command to run to get the Windows version, and `cat /etc/install-options.txt` and several alternative CMD commands to provide information on build options. Relevant Links: This is part of #847. The git --version --build-options change discussion is at #846 Signed-off-by: Clive Chan <[email protected]>
With the addition of the architecture (x86/x86_64) to git --version --build-options, it's good to add that to the Git version question. On the Windows version question, prompted for "Vista, 7, 8, 10? to indicate exactly what we're talking about. Also added `cmd.exe /c ver` as a command to run to get the Windows version, and `cat /etc/install-options.txt` and several alternative CMD commands to provide information on build options. Relevant Links: This is part of #847. The git --version --build-options change discussion is at #846 Signed-off-by: Clive Chan <[email protected]>
With the addition of the architecture (x86/x86_64) to git --version --build-options, it's good to add that to the Git version question. On the Windows version question, prompted for "Vista, 7, 8, 10? to indicate exactly what we're talking about. Also added `cmd.exe /c ver` as a command to run to get the Windows version, and `cat /etc/install-options.txt` and several alternative CMD commands to provide information on build options. Relevant Links: This is part of #847. The git --version --build-options change discussion is at #846 Signed-off-by: Clive Chan <[email protected]>
or closed issue
matching what I'm seeing
(although since almost every issue has "git version" in its content that's not very helpful)
Instead of
why not
and
I'd pull request, but I can't find any reference to it in the code, so I'm guessing it's bundled in when it's compiled. No idea though.
The text was updated successfully, but these errors were encountered: