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

[PATCH v2 0/5] git-reset documentation changes

From
Thomas Rast <trast@student.ethz.ch>
Date
Jul 18, 2010, 18:23 UTC
Message-ID
<cover.1279477130.git.trast@student.ethz.ch>
In-Reply-To
<7v7hkvrwd0.fsf@alter.siamese.dyndns.org>

Junio C Hamano wrote: [on patch 2/5]

Show 18 quoted lines
> >  DESCRIPTION
> >  -----------
> > +Sets the current branch to the specified <commit> and optionally
> > +resets the index and working tree to match.  The <commit> defaults to
> > +HEAD in all forms.
> 
> With a careless reading of this paragraph, I got an impression that HEAD
> is always affected, but I happen to know that is not the case ;-).
> 
>  - "reset" is primarily about resetting the index and the --soft option
>    can be used to optionally not to do this.
> 
>    . with paths, the command is about fixing up the index contents for
>      given specific paths, to prepare for the next commit.  HEAD is not
>      moved.
> 
>    . without paths, the command is about changing what commit to build
>      your next commit on, i.e. HEAD is moved.

You're right, I completely left out the <paths> mode there. I rewrote this as a short summary of all three modes in this version.

> "git reset HEAD frotz" from a head commit without frotz gets rid of frotz
> from the index, no?

True. I thought it didn't (and required rm --cached) but I must have mixed up something.

The other patches are unchanged from v1.
Thomas Rast (5):
  Documentation/git-reset: reorder modes for soft-mixed-hard
    progression
  Documentation/reset: separate options by mode
  Documentation/reset: promote 'examples' one section up
  Documentation/reset: reorder examples to match description
  Documentation/reset: move "undo permanently" example behind "make
    topic"
 Documentation/git-reset.txt |  347 ++++++++++++++++++++++---------------------
 1 files changed, 178 insertions(+), 169 deletions(-)
-- 
1.7.2.rc3.317.gc287
Previous: Junio C HamanoNext: Thomas Rast
Message 5 of 14 in “git-reset documentation changes”
  1. 0/5 git-reset documentation changesThomas Rast, Jul 16, 2010
  2. 1/5 Documentation/git-reset: reorder modes for soft-mixed-hard progressionThomas Rast, Jul 16, 2010
  3. 2/5 Documentation/reset: separate options by modeThomas Rast, Jul 16, 2010
  4. Junio C HamanoJul 16, 2010
  5. 0/5 git-reset documentation changesThomas Rast, Jul 18, 2010
  6. 1/5 Documentation/git-reset: reorder modes for soft-mixed-hard progressionThomas Rast, Jul 18, 2010
  7. 2/5 Documentation/reset: separate options by modeThomas Rast, Jul 18, 2010
  8. 3/5 Documentation/reset: promote 'examples' one section upThomas Rast, Jul 18, 2010
  9. 4/5 Documentation/reset: reorder examples to match descriptionThomas Rast, Jul 18, 2010
  10. 5/5 Documentation/reset: move "undo permanently" example behind "make topic"Thomas Rast, Jul 18, 2010
  11. 3/5 Documentation/reset: promote 'examples' one section upThomas Rast, Jul 16, 2010
  12. 4/5 Documentation/reset: reorder examples to match descriptionThomas Rast, Jul 16, 2010
  13. 5/5 Documentation/reset: move "undo permanently" example behind "make topic"Thomas Rast, Jul 16, 2010
  14. Junio C HamanoJul 16, 2010

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.