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

Re: [PATCH WIP] git-stash: add new 'drop' subcommand

From
Paolo Bonzini <bonzini@gnu.org>
Date
Feb 6, 2008, 17:11 UTC
Message-ID
<47A9EA4A.60101@gnu.org>
In-Reply-To
<47A9DE06.9050307@nrlssc.navy.mil>
Show 5 quoted lines
> Also missing is the ability to drop multiple stash entries at
> one time. I think reflog delete will have to be modified to
> accommodate this. What happens is that the deletions are performed
> in a loop, and each deletion shifts the reflog entries so that they
> don't necessarily point to the same thing.
You just have to sort them backwards, either here or in git reflog.
> +drop)
> +	shift
> +	drop_stash "$@"
drop_stash $(echo "$@" | tr ' ' '\n' | sort -runt\{ -k2)
Paolo
Previous: Brandon CaseyNext: Junio C Hamano
Message 7 of 9 in “git-stash: alias 'list' to 'ls' and 'clear' to 'rm'”
  1. git-stash: alias 'list' to 'ls' and 'clear' to 'rm'Tim Stoakes, Feb 5, 2008
  2. Wincent ColaiutaFeb 5, 2008
  3. Tim StoakesFeb 5, 2008
  4. Wincent ColaiutaFeb 5, 2008
  5. Johannes SchindelinFeb 5, 2008
  6. git-stash: add new 'drop' subcommandBrandon Casey, Feb 6, 2008
  7. Paolo BonziniFeb 6, 2008
  8. Junio C HamanoFeb 6, 2008
  9. Johannes SchindelinFeb 6, 2008

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.