From: Stefan Beller <sbeller@google.com>
To: Matthias Asshauer <mha1993@live.de>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH 2/2] stash: use "stash--helper"
Date: Thu, 28 Jan 2016 12:59:41 -0800 [thread overview]
Message-ID: <CAGZ79kaPQP+-LpW8ExM2wmfftW4_oa7tB5XdfsdC8XHwH4aFOA@mail.gmail.com> (raw)
In-Reply-To: <0000015289f33e85-713596a1-2718-4c3a-bf3c-4a0f1048d401-000000@eu-west-1.amazonses.com>
On Thu, Jan 28, 2016 at 12:36 PM, Matthias Asshauer <mha1993@live.de> wrote:
> From: Matthias Aßhauer <mha1993@live.de>
>
> Use the new "git stash--helper" builtin. It should be faster than the old shell code and is a first step to move
> more shell code to C.
You had some good measurements in the coverletter, which is not going to be
recorded in the projects history. This part however would be part of the commit.
So you could move the speed improvements here (as well as the other reasoning)
on why this is a good idea. :)
>
> Signed-off-by: Matthias Aßhauer <mha1993@live.de>
> ---
> git-stash.sh | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/git-stash.sh b/git-stash.sh
> index c7c65e2..973c77b 100755
> --- a/git-stash.sh
> +++ b/git-stash.sh
> @@ -112,15 +112,7 @@ create_stash () {
> then
>
> # state of the working tree
> - w_tree=$( (
> - git read-tree --index-output="$TMPindex" -m $i_tree &&
> - GIT_INDEX_FILE="$TMPindex" &&
> - export GIT_INDEX_FILE &&
> - git diff --name-only -z HEAD -- >"$TMP-stagenames" &&
> - git update-index -z --add --remove --stdin <"$TMP-stagenames" &&
> - git write-tree &&
> - rm -f "$TMPindex"
> - ) ) ||
> + w_tree=$(git stash--helper --non-patch "$TMPindex" $i_tree) ||
> die "$(gettext "Cannot save the current worktree state")"
>
> else
>
> --
> https://github.com/git/git/pull/191
Oh I see you're using the pull-request to email translator, cool!
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-01-28 20:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-28 19:38 [PATCH 0/2] Make stash a builtin Matthias Aßhauer
2016-01-28 20:36 ` [PATCH 1/2] stash--helper: implement "git stash--helper" Matthias Asshauer
2016-01-28 20:36 ` [PATCH 2/2] stash: use "stash--helper" Matthias Asshauer
2016-01-28 20:59 ` Stefan Beller [this message]
2016-01-28 21:25 ` AW: " Matthias Aßhauer
2016-01-28 21:41 ` Stefan Beller
2016-01-28 23:28 ` Roberto Tyley
2016-01-29 19:37 ` AW: " Matthias Aßhauer
2016-01-29 11:21 ` Thomas Gummerer
2016-01-29 18:34 ` Junio C Hamano
2016-01-28 23:06 ` [PATCH 1/2] stash--helper: implement "git stash--helper" Junio C Hamano
2016-01-29 19:32 ` AW: " Matthias Aßhauer
2016-01-29 19:58 ` Junio C Hamano
2016-02-01 23:36 ` Michael Blume
2016-02-01 23:40 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGZ79kaPQP+-LpW8ExM2wmfftW4_oa7tB5XdfsdC8XHwH4aFOA@mail.gmail.com \
--to=sbeller@google.com \
--cc=git@vger.kernel.org \
--cc=mha1993@live.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).