# [PATCH] doc/git-reset: add reference to git-stash

4 messages from 2008-12-17 to 2008-12-17. Participants: Markus Heidelberg, Miklos Vajna.
Thread: https://gitlist.dev/t/16761

## Markus Heidelberg, 2008-12-17 02:59

Subject: [PATCH] doc/git-reset: add reference to git-stash
Message-ID: <200812170359.36253.markus.heidelberg@web.de>
URL: https://gitlist.dev/e/200812170359.36253.markus.heidelberg%40web.de

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

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 Documentation/git-reset.txt |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 52aab5e..29156f6 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -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::
 +
-- 
1.6.1.rc3.23.gaf48b

```

## Miklos Vajna, 2008-12-17 04:11

Subject: Re: [PATCH] doc/git-reset: add reference to git-stash
Message-ID: <20081217041159.GY5691@genesis.frugalware.org>
URL: https://gitlist.dev/e/20081217041159.GY5691%40genesis.frugalware.org
In-Reply-To: <200812170359.36253.markus.heidelberg@web.de>

```
On Wed, Dec 17, 2008 at 03:59:36AM +0100, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> ++
> +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(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 52aab5e..e7ddc43 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -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 <gitster@pobox.com> and Linus Torvalds <torvalds@osdl.org>

```

## Markus Heidelberg, 2008-12-17 08:49

Subject: Re: [PATCH] doc/git-reset: add reference to git-stash
Message-ID: <200812170949.42753.markus.heidelberg@web.de>
URL: https://gitlist.dev/e/200812170949.42753.markus.heidelberg%40web.de
In-Reply-To: <20081217041159.GY5691@genesis.frugalware.org>

```
Miklos Vajna, 17.12.2008:
> On Wed, Dec 17, 2008 at 03:59:36AM +0100, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> > ++
> > +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.

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

```

## Miklos Vajna, 2008-12-17 14:33

Subject: Re: [PATCH] doc/git-reset: add reference to git-stash
Message-ID: <20081217143319.GA5691@genesis.frugalware.org>
URL: https://gitlist.dev/e/20081217143319.GA5691%40genesis.frugalware.org
In-Reply-To: <200812170949.42753.markus.heidelberg@web.de>

```
On Wed, Dec 17, 2008 at 09:49:42AM +0100, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> Miklos Vajna, 17.12.2008:
> > On Wed, Dec 17, 2008 at 03:59:36AM +0100, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> > > ++
> > > +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.

```
