3 ms·
If you don't have XCode installed and you run `git` you get a stub executable that prompts you to install the XCode command line tools. That's a bit of trickery
by pxc 3y ago
If you don't have XCode installed and you run `git` you get a stub executable that prompts you to install the XCode command line tools. That's a bit of trickery and an annoyance imo, though it's not a whole install of XCode.
Also it takes quite some footwork to actually get by without the XCode Command Line tools on macOS if you use Homebrew. The Homebrew installer installs them, and at some point Homebrew itself added checks to see if it's around, either in brew or in some packages (IDR which) so sometimes it'll install them even if another Git is available.
It can also be a bit annoying with Nix, since Nix shells out to Git impurely for flakes operations (it does this to simplify authenticating to Git repos, I think), but that also means that it assumes a working Git implementation is available, and the stub that comes on macOS isn't one, obviously.
Not a huge deal (I say just install the CLT), but I definitely consider those stub executables stupid and annoying.