Skip to contentSkip to conversation

doc/git-reset: add reference to git-stash

PATCH In review Markus Heidelberg 2 participants 4 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc/git-reset: add reference to git-stash

The "Interrupted workflow" situation is a good example for using git-stash.

---
 Documentation/git-reset.txt |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Documentation/git-reset.txt +2 -0
index 52aab5e..29156f6 100644
@@ -177,6 +177,8 @@ $ git reset                                       <3>
 <3> At this point the index file still has all the WIP changes you
     committed as 'snapshot WIP'.  This updates the index to show your
     WIP files as uncommitted.
++
+See also linkgit:git-stash[1].
 
 Reset a single file in the index::
 +
Signature · 1 line
1.6.1.rc3.23.gaf48b
#1 lore raw
Quoted 2 lines · Markus Heidelberg

++
+See also linkgit:git-stash[1].

Manpages have a dedicated "SEE-ALSO" section. What about this?

(See Documentation/git-commit.txt for an example.)

---
 Documentation/git-reset.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Documentation/git-reset.txt +4 -0
index 52aab5e..e7ddc43 100644
@@ -195,6 +195,10 @@ $ git add frotz.c                           <3>
 <2> This commits all other changes in the index.
 <3> Adds the file to the index again.
 
+SEE ALSO
+--------
+linkgit:git-stash[1]
+
 Author
 ------
 Written by Junio C Hamano <[email protected]> and Linus Torvalds <[email protected]>
#2 lore raw

Miklos Vajna, 17.12.2008:

Quoted 5 lines · Markus Heidelberg
Quoted 2 lines

++
+See also linkgit:git-stash[1].

Manpages have a dedicated "SEE-ALSO" section. What about this?

That's only appropriate if the commands are generally related to each other, which isn't true for git-reset and git-stash.

Quoted 1 line

(See Documentation/git-commit.txt for an example.)

man git-commit
/See
-> I get 4 search matches outside of the "SEE ALSO" section and it makes sense in these cases.

Markus

#3 lore raw
Quoted 9 lines · Markus Heidelberg

Miklos Vajna, 17.12.2008:

Quoted 5 lines · Markus Heidelberg
Quoted 2 lines

++
+See also linkgit:git-stash[1].

Manpages have a dedicated "SEE-ALSO" section. What about this?

That's only appropriate if the commands are generally related to each other, which isn't true for git-reset and git-stash.

Ah, OK.