<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-stash.sh, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2008-12-08T01:30:35Z</updated>
<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>
<entry>
<title>bash completion: More completions for 'git stash'</title>
<updated>2008-08-06T04:21:19Z</updated>
<author>
<name>Lee Marlow</name>
<email>lee.marlow@gmail.com</email>
</author>
<published>2008-08-05T05:50:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=95d43780cff575cfffeea881464c77f84f8d7244'/>
<id>urn:sha1:95d43780cff575cfffeea881464c77f84f8d7244</id>
<content type='text'>
Add branch subcommand to completions and USAGE for git-stash.sh.
Complete stash names for show, apply, drop, pop, and branch.
Add "--index" long option for apply.

Signed-off-by: Lee Marlow &lt;lee.marlow@gmail.com&gt;
Acked-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash save: fix parameter handling</title>
<updated>2008-07-23T23:57:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-23T20:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47629dcff0fc75d58f9319d221a78934358e4ef8'/>
<id>urn:sha1:47629dcff0fc75d58f9319d221a78934358e4ef8</id>
<content type='text'>
A command line "git stash save --keep-index I was doing this" was
misparsed and keep-index codepath did not trigger.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'am/stash-branch'</title>
<updated>2008-07-13T22:16:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-13T22:16:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=671d3220359145edd1002dc0afe76bc5782597f3'/>
<id>urn:sha1:671d3220359145edd1002dc0afe76bc5782597f3</id>
<content type='text'>
* am/stash-branch:
  Add a test for "git stash branch"
  Implement "git stash branch &lt;newbranch&gt; &lt;stash&gt;"
</content>
</entry>
</feed>
