<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-stash.sh, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-07-23T04:57:41Z</updated>
<entry>
<title>git stash: modernize use of "dashed" git-XXX calls</title>
<updated>2009-07-23T04:57:41Z</updated>
<author>
<name>Martin Koegler</name>
<email>mkoegler@auto.tuwien.ac.at</email>
</author>
<published>2009-07-22T05:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=520707905388e293a482066599a1c181ef32f2f0'/>
<id>urn:sha1:520707905388e293a482066599a1c181ef32f2f0</id>
<content type='text'>
Replace remaining git-XXX calls with git XXX.

Signed-off-by: Martin Koegler &lt;mkoegler@auto.tuwien.ac.at&gt;
Acked-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: teach quiet option</title>
<updated>2009-06-18T18:54:57Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2009-06-18T01:07:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8'/>
<id>urn:sha1:fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8</id>
<content type='text'>
Teach stash pop, apply, save, and drop to be quiet when told. By using
the quiet option (-q), these actions will be silent unless errors are
encountered.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: mention 'git stash pop --index' option explicitly</title>
<updated>2009-06-09T07:18:24Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder@ira.uka.de</email>
</author>
<published>2009-06-08T22:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f39d6ee2aad735641dce90f7e021e6b6862963c6'/>
<id>urn:sha1:f39d6ee2aad735641dce90f7e021e6b6862963c6</id>
<content type='text'>
'git stash pop' supports the '--index' option since its initial
implementation (bd56ff54, git-stash: add new 'pop' subcommand,
2008-02-22), but its documentation does not mention it explicitly.
Moreover, both the usage shown by 'git stash -h' and the synopsis
section in the man page imply that 'git stash pop' does not have an
'--index' option.

First, this patch corrects the usage and the synopsis section.

Second, the patch moves the description of the '--index' option to the
'git stash pop' section in the documentation, and refers to it from
the 'git stash apply' section.  This way it follows the intentions of
commit d1836637 (Documentation: teach stash/pop workflow instead of
stash/apply, 2009-05-28), as all 'git stash pop'-related documentation
will be in one place without references to 'git stash apply'.

Signed-off-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Revert "git-stash: use git rev-parse -q"</title>
<updated>2008-12-08T01:30:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-12-08T01:30:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e32126f04f6ad64826d4c145f2a1a9685e0910d'/>
<id>urn:sha1:0e32126f04f6ad64826d4c145f2a1a9685e0910d</id>
<content type='text'>
This reverts commit 757c7f60a78004fc3d0ea62f44320d54ef430c10 as an
unnecessary error message to pop up when the last stash entry is dropped.

It simply is not worth the aggravation.
</content>
</entry>
<entry>
<title>git-stash: use git rev-parse -q</title>
<updated>2008-12-03T00:54:01Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-12-02T00:56:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=757c7f60a78004fc3d0ea62f44320d54ef430c10'/>
<id>urn:sha1:757c7f60a78004fc3d0ea62f44320d54ef430c10</id>
<content type='text'>
Don't redirect stderr to /dev/null, use -q to suppress the output on
stderr.

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-stash.sh: fix flawed fix of invalid ref handling (commit da65e7c1)</title>
<updated>2008-10-09T16:09:50Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-02T23:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=875471c510b29f920693834b43a992c99694af58'/>
<id>urn:sha1:875471c510b29f920693834b43a992c99694af58</id>
<content type='text'>
The referenced commit tried to fix a flaw in stash's handling of a user
supplied invalid ref. i.e. 'git stash apply fake_ref@{0}' should fail
instead of applying stash@{0}. But, it did so in a naive way by avoiding the
use of the --default option of rev-parse, and instead manually supplied the
default revision if the user supplied an empty command line. This prevented
a common usage scenario of supplying flags on the stash command line (i.e.
non-empty command line) which would be parsed by lower level git commands,
without supplying a specific revision. This should fall back to the default
revision, but now it causes an error. e.g. 'git stash show -p'

The correct fix is to use the --verify option of rev-parse, which fails
properly if an invalid ref is supplied, and still allows falling back to a
default ref when one is not supplied.

Convert stash-drop to use --verify while we're at it, since specifying
multiple revisions for any of these commands is also an error and --verify
makes it so.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Clarify how the user can satisfy stash's 'dirty state' check.</title>
<updated>2008-09-29T15:13:10Z</updated>
<author>
<name>Stephen Haberman</name>
<email>stephen@exigencecorp.com</email>
</author>
<published>2008-09-29T09:12:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a79d2f662a5a82a6cfcfd2a0d980e7b1875f320'/>
<id>urn:sha1:2a79d2f662a5a82a6cfcfd2a0d980e7b1875f320</id>
<content type='text'>
Signed-off-by: Stephen Haberman &lt;stephen@exigencecorp.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-stash.sh: don't default to refs/stash if invalid ref supplied</title>
<updated>2008-09-24T16:24:20Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-09-23T23:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da65e7c133cd316c9076fbb6b0aeee7bc42a6db8'/>
<id>urn:sha1:da65e7c133cd316c9076fbb6b0aeee7bc42a6db8</id>
<content type='text'>
apply_stash() and show_stash() each call rev-parse with
'--default refs/stash' as an argument. This option causes rev-parse to
operate on refs/stash if it is not able to successfully operate on any
element of the command line. This includes failure to supply a "valid"
revision. This has the effect of causing 'stash apply' and 'stash show'
to operate as if stash@{0} had been supplied when an invalid revision is
supplied.

e.g. 'git stash apply stash@{1}' would fall back to
     'git stash apply stash@{0}'

This patch modifies these two functions so that they avoid using the
--default option of rev-parse.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>stash: refresh the index before deciding if the work tree is dirty</title>
<updated>2008-09-06T23:16:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-04T09:41:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1eff26c0e25652ec60e1f9f1c35fc02c8ad22d98'/>
<id>urn:sha1:1eff26c0e25652ec60e1f9f1c35fc02c8ad22d98</id>
<content type='text'>
Unlike the case where the user does have a real change in the work tree,
refusing to work because of unclean stat information is not very helpful.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Acked-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
</content>
</entry>
<entry>
<title>git-stash: improve synopsis in help and manual page</title>
<updated>2008-08-16T09:58:18Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-08-16T03:27:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a5ab00c5d20cee04ce181bb5a6c3ca5d923744a4'/>
<id>urn:sha1:a5ab00c5d20cee04ce181bb5a6c3ca5d923744a4</id>
<content type='text'>
"git stash -h" showed some incomplete and ugly usage information.
For example, the useful "--keep-index" option for "save" or the "--index"
option for  "apply" were not shown. Also in the documentation synopsis they
were not shown, so that there is no incentive to scroll down and even see
that such options exist.

This patch improves the git-stash synopsis in the documentation by
mentioning that further options to the stash commands and then copies
this synopsis to the usage information string of git-stash.sh.

For the latter, the dashless git command string has to be inserted on the
second and the following usage lines. The code of this is taken from
git-sh-setup so that all lines will show the command string.

Note that the "create" command is not advertised at all now, because
it was not mentioned in git-stash.txt.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
