git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git reset musings

From
Stephan Beyer <s-beyer@gmx.net>
Date
Jul 25, 2008, 17:04 UTC
Message-ID
<20080725170433.GD27172@leksak.fem-net>
In-Reply-To
<bd6139dc0807241151p177bb8eey6ff0fbd0a5d9008@mail.gmail.com>
Hi,
Sverre Rabbelier wrote:
Show 11 quoted lines
> Heya,
> 
> After doing "git reset" you always get a whole bunch of lines saying
> "foo: locally modified". Now I have a "OMG?!" reaction to that every
> so often, where for a brief moment I think something went wrong. A bit
> silly surely, but I suspect that some other users (especially those
> new to git) have had similar reactions. Maybe it would be worth
> letting the user know what's going on? E.g., before suddenly spitting
> out an un-asked-for status report, let the user know that a status
> report is following? Why not just do a 'git status' instead of this
> we-hacked-up-a-quick-status-listing thing?
This is no "quick status listing hack", it is a
"We've just refreshed the index regarding this entry, so we
 should output that this file in the working tree is different
 from the index now."

So you would use the REFRESH_QUIET flag and invoke git-status at the end of git-reset? Hmmm, I don't know if this is good.

Isn't typing "git status" the standard reaction to the "OMG?! What's going here?" feeling? And after you've first experienced this, it's something you know. There will not be a second "OMG?!" :)

And "locally modified" seems to be less ambiguous than "needs update".
Regards,
  Stephan
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Sverre Rabbelier
Message 2 of 2 in “git reset musings”
  1. Sverre RabbelierJul 24, 2008
  2. Stephan BeyerJul 25, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.