From: Paolo Bonzini <bonzini@gnu.org>
To: Brandon Casey <casey@nrlssc.navy.mil>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Wincent Colaiuta <win@wincent.com>, Tim Stoakes <tim@stoakes.net>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH WIP] git-stash: add new 'drop' subcommand
Date: Wed, 06 Feb 2008 18:11:38 +0100 [thread overview]
Message-ID: <47A9EA4A.60101@gnu.org> (raw)
In-Reply-To: <47A9DE06.9050307@nrlssc.navy.mil>
> 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
next prev parent reply other threads:[~2008-02-06 17:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 10:38 [PATCH] git-stash: alias 'list' to 'ls' and 'clear' to 'rm' Tim Stoakes
2008-02-05 11:06 ` Wincent Colaiuta
2008-02-05 11:20 ` Tim Stoakes
2008-02-05 12:12 ` Wincent Colaiuta
2008-02-05 14:03 ` Johannes Schindelin
2008-02-06 16:19 ` [PATCH WIP] git-stash: add new 'drop' subcommand Brandon Casey
2008-02-06 17:11 ` Paolo Bonzini [this message]
2008-02-06 19:44 ` Junio C Hamano
2008-02-06 23:53 ` Johannes Schindelin
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=47A9EA4A.60101@gnu.org \
--to=bonzini@gnu.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=casey@nrlssc.navy.mil \
--cc=git@vger.kernel.org \
--cc=tim@stoakes.net \
--cc=win@wincent.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.