git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Replace remaining git-* calls in git stash

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Jul 22, 2009, 22:08 UTC
Message-ID
<20090723070810.6117@nanako3.lavabit.com>
In-Reply-To
<1248206777-6984-2-git-send-email-mkoegler@auto.tuwien.ac.at>
Quoting Martin Koegler <mkoegler@auto.tuwien.ac.at>:
> Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
> ---
Thank you. Even though 'git blame' says I am not responsible for these two (I AM responsible for the one in your other patch)...
Acked-by: Nanako Shiraishi <nanako3@lavabit.com>
Show 27 quoted lines
>  git-stash.sh |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git-stash.sh b/git-stash.sh
> index 5b4b4e6..03e589f 100755
> --- a/git-stash.sh
> +++ b/git-stash.sh
> @@ -203,7 +203,7 @@ apply_stash () {
>  		git diff-tree --binary $s^2^..$s^2 | git apply --cached
>  		test $? -ne 0 &&
>  			die 'Conflicts in index. Try without --index.'
> -		unstashed_index_tree=$(git-write-tree) ||
> +		unstashed_index_tree=$(git write-tree) ||
>  			die 'Could not save index tree'
>  		git reset
>  	fi
> @@ -297,7 +297,7 @@ apply_to_branch () {
>  	fi
>  	stash=$2
>  
> -	git-checkout -b $branch $stash^ &&
> +	git checkout -b $branch $stash^ &&
>  	apply_stash --index $stash &&
>  	drop_stash $stash
>  }
> -- 
> 1.5.6.5
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Johannes SchindelinNext: Junio C Hamano
Message 4 of 8 in “Fix git stash apply”
  1. 1/2 Fix git stash applyMartin Koegler, Jul 21, 2009
  2. 2/2 Replace remaining git-* calls in git stashMartin Koegler, Jul 21, 2009
  3. Johannes SchindelinJul 21, 2009
  4. Nanako ShiraishiJul 22, 2009
  5. Junio C HamanoJul 22, 2009
  6. Martin KoeglerJul 23, 2009
  7. Johannes SchindelinJul 21, 2009
  8. Junio C HamanoJul 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.