2 ms·
> I dislike the mess of crappy synonyms too, but git diff --staged is already an alias Problematically it's very little used, it's only mentioned once at the v
by masklinn 9y ago
> I dislike the mess of crappy synonyms too, but git diff --staged is already an alias
Problematically it's very little used, it's only mentioned once at the very tail end of the `—cached` description, `--cached` is still the primary flag, and the essay remains correct that references throughout the documentation are inconsistent.
It's not exactly hard to miss, if e.g. you learn git through the Pro Git book, the option is not mentioned once, and even the full text search has not indexed it.
Furthermore, there are many other commands which take a —cached flag but don't have a —staged alias (diff-index, submodule, check-attr, apply, rm)