<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-stash.sh, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-03-07T00:41:40Z</updated>
<entry>
<title>stash: optionally use the scripted version again</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-02-25T23:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=90a462725ef3932a2408e78a47e3dfc1b8d445cf'/>
<id>urn:sha1:90a462725ef3932a2408e78a47e3dfc1b8d445cf</id>
<content type='text'>
We recently converted the `git stash` command from Unix shell scripts
to builtins.

Let's end users a way out when they discover a bug in the
builtin command: `stash.useBuiltin`.

As the file name `git-stash` is already in use, let's rename the
scripted backend to `git-legacy-stash`.

To make the test suite pass with `stash.useBuiltin=false`, this commit
also backports rudimentary support for `-q` (but only *just* enough
to appease the test suite), and adds a super-ugly hack to force exit
code 129 for `git stash -h`.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: add back the original, scripted `git stash`</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-02-25T23:16:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d8e9c2a94c4cb60a0db2a496fd1f28fc6ec79f8'/>
<id>urn:sha1:8d8e9c2a94c4cb60a0db2a496fd1f28fc6ec79f8</id>
<content type='text'>
This simply copies the version as of sd/stash-wo-user-name verbatim. As
of now, it is not hooked up.

The next commit will change the builtin `stash` to hand off to the
scripted `git stash` when `stash.useBuiltin=false`.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert `stash--helper.c` into `stash.c`</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40af14683432285b94407e8488eab6942d0779dc'/>
<id>urn:sha1:40af14683432285b94407e8488eab6942d0779dc</id>
<content type='text'>
The old shell script `git-stash.sh`  was removed and replaced
entirely by `builtin/stash.c`. In order to do that, `create` and
`push` were adapted to work without `stash.sh`. For example, before
this commit, `git stash create` called `git stash--helper create
--message "$*"`. If it called `git stash--helper create "$@"`, then
some of these changes wouldn't have been necessary.

This commit also removes the word `helper` since now stash is
called directly and not by a shell script.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert save to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64fe9c26a479082eb80a9d68e8b3b7686e8c2b26'/>
<id>urn:sha1:64fe9c26a479082eb80a9d68e8b3b7686e8c2b26</id>
<content type='text'>
Add stash save to the helper and delete functions which are no
longer needed (`show_help()`, `save_stash()`, `push_stash()`,
`create_stash()`, `clear_stash()`, `untracked_files()` and
`no_changes()`).

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert push to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d553f538b8a788a4a285af2000edf3285694182e'/>
<id>urn:sha1:d553f538b8a788a4a285af2000edf3285694182e</id>
<content type='text'>
Add stash push to the helper.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert create to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d4788af875cc5c027c42b85435b022edb00b9fda'/>
<id>urn:sha1:d4788af875cc5c027c42b85435b022edb00b9fda</id>
<content type='text'>
Add stash create to the helper.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Helped-by: Matthew Kraai &lt;mkraai@its.jnj.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert store to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41e0dd55c4300dc83ea2883bf04bfb234c071f98'/>
<id>urn:sha1:41e0dd55c4300dc83ea2883bf04bfb234c071f98</id>
<content type='text'>
Add stash store to the helper and delete the store_stash function
from the shell script.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert show to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc7bd382b1063303f4f45d243bff371899285acb'/>
<id>urn:sha1:dc7bd382b1063303f4f45d243bff371899285acb</id>
<content type='text'>
Add stash show to the helper and delete the show_stash, have_stash,
assert_stash_like, is_stash_like and parse_flags_and_rev functions
from the shell script now that they are no longer needed.

In shell version, although `git stash show` accepts `--index` and
`--quiet` options, it ignores them. In C, both options are passed
further to `git diff`.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert list to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Paul-Sebastian Ungureanu</name>
<email>ungureanupaulsebastian@gmail.com</email>
</author>
<published>2019-02-25T23:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=130f2697daf60f09a15884a4510b4fa0230eee98'/>
<id>urn:sha1:130f2697daf60f09a15884a4510b4fa0230eee98</id>
<content type='text'>
Add stash list to the helper and delete the list_stash function
from the shell script.

Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: convert pop to builtin</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Joel Teichroeb</name>
<email>joel@teichroeb.net</email>
</author>
<published>2019-02-25T23:16:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c4de61d7a95ebb7197191bc51475d19068b6d526'/>
<id>urn:sha1:c4de61d7a95ebb7197191bc51475d19068b6d526</id>
<content type='text'>
Add stash pop to the helper and delete the pop_stash, drop_stash,
assert_stash_ref functions from the shell script now that they
are no longer needed.

Signed-off-by: Joel Teichroeb &lt;joel@teichroeb.net&gt;
Signed-off-by: Paul-Sebastian Ungureanu &lt;ungureanupaulsebastian@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
