Skip to content

git-reset documentation changes

Thomas Rast git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Documentation/git-reset: reorder modes for soft-mixed-hard progressionDocumentation/git-reset.txt+6 -60 replies
2/5Documentation/reset: separate options by modeDocumentation/git-reset.txt+33 -260 replies
3/5Documentation/reset: promote 'examples' one section upDocumentation/git-reset.txt+109 -1070 replies
4/5Documentation/reset: reorder examples to match descriptionDocumentation/git-reset.txt+23 -230 replies
5/5Documentation/reset: move "undo permanently" example behind "make topic"Documentation/git-reset.txt+13 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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

Quoted 12 lines

Review

Quoted 5 lines

DESCRIPTION
-----------

(quoted diff) +3 -0
+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.

Quoted 6 lines

. 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.

Quoted 2 lines

"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(-)
Signature · 1 line
1.7.2.rc3.317.gc287