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

What about renaming ga -i [r]evert to [r]eset ?

From
MWMarc Weber <marco-oweber@gmx.de>
Date
Oct 5, 2008, 15:26 UTC
Message-ID
<20081005152654.GA13618@gmx.de>
Hi,

Some time ago I told a friend to use ga -i [r](evert).. and I thought it would do the same as svn revert (set the working copy back to the state recorded in repo (which git checkout does)..

The ga -i help display reveals that reverting does reset the index (cache to be comitted) instead. I think it's better to rename the command [r]evert to [r]eset ?

I've also added the command [c]heckout last.

You can get the patch from git://mawercer.de/git_my_patches branch revert_to_reset_renaming

Maybe someone of you beeing more familiar with perl, git-add--interactive and git can review it maybe telling me what should be done so that it can be committed upstream?

Thanks Marc

Next: Jeff King
Message 1 of 10 in “What about renaming ga -i [r]evert to [r]eset ?”
  1. Marc WeberOct 5, 2008
  2. Jeff KingOct 5, 2008
  3. renaming git add -i [r]evert -> reset and adding gitt add -i [c]heckoutMarc Weber, Oct 5, 2008
  4. Jeff KingOct 5, 2008
  5. 1/2 add--interactive: rename [r]evert command to [r]esetMarc Weber, Oct 6, 2008
  6. 2/2 add--interactive: added [c]heckoutMarc Weber, Oct 6, 2008
  7. Shawn O. PearceOct 6, 2008
  8. Marc WeberOct 6, 2008
  9. Shawn O. PearceOct 6, 2008
  10. Marc WeberOct 6, 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.