Re: What's cooking in git.git (Feb 2015, #06; Sun, 22)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 23, 2015, 19:00 UTC
- Message-ID
- <xmqqk2z8tpve.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <54EB30F0.4010404@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 6 quoted lines
> status, status -s and the like are in an ordinary user's tool box. > ls-files isn't, at least not with "-t", which we even mark as deprecated. > > That makes me wonder, though, how difficult it would be to > wt_status_collect_unchanged() and to leverage the status machinery > rather than ls-files.
Good point. wt-status feels like a much better infrastructure to build on than "ls-files -t", which should die ;-). Especially if the command is interested in showing the state of the working tree files relative to the tree of HEAD, as "ls-files" is purely between the index and the working tree.