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

Re: Can I remove multiple stashed states at a time?

From
Kevin Daudt <me@ikke.info>
Date
Oct 14, 2017, 15:01 UTC
Message-ID
<20171014150123.GA28038@alpha.vpn.ikke.info>
In-Reply-To
<20171013173522.vprwjwprhnoiyajy@sigill.intra.peff.net>
On Fri, Oct 13, 2017 at 01:35:22PM -0400, Jeff King wrote:
Show 8 quoted lines
> On Fri, Oct 13, 2017 at 11:58:12AM +0900, 小川恭史 wrote:
> 
> You can also just do:
> 
>   for i in 1 2 3; do
>      git stash drop $i
>   done
> 

Doesn't stash 2 become stash 1 after the first drop, and the same for 3, resulting in dropping stash 1, 3 and 5?

So something like
  for i in 3 2 1; do
      git stash drop $i;
  done
Or leave $i out altogether.
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “Can I remove multiple stashed states at a time?”
  1. 小川恭史Oct 13, 2017
  2. Jeff KingOct 13, 2017
  3. Kevin DaudtOct 14, 2017
  4. Jeff KingOct 14, 2017

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.