From: Jonathan Nieder Date: Wed, 22 Nov 2017 20:27:20 GMT Subject: Re: git status always modifies index? Message-ID: <20171122202720.GD11671@aiede.mtv.corp.google.com> In-Reply-To: Hi, Nathan Neulinger wrote[1]: > I just got an answer to my stackoverflow question on this, > apparently it's already implemented: > > https://stackoverflow.com/questions/47436939/how-to-run-git-status-without-modifying-git-index-such-as-in-a-prompt-command > > There is a "--no-optional-locks" command in 2.15 that looks like it > does exactly what I need. I was about to point to https://public-inbox.org/git/20170921043214.pyhdsrpy4omy54rm@sigill.intra.peff.net/ about exactly this thing. :) That said, I wonder if this use case is an illustration that a name like --no-lock-index (as was used in Git for Windows when this feature first appeared) or --no-refresh-on-disk-index (sorry, I am terrible at coming up with option names) would make the feature easier to discover. Thanks, Jonathan [1] https://public-inbox.org/git/dfbf4af3-e87c-bdcb-7544-685572925a50@neulinger.org/