You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Mitch Claborn <in...@hatcherymanager.com> on 2025/04/01 14:58:35 UTC
Git unstash - drop option?
I frequently use Git unstash from the Team menu in NetBeans. That works
fine, but then I have to drop the stash manually from the command line. Is
there any way to apply and drop at the same time? (something like "git
stash pop") Or a way to manage the stash list from NetBeans?
Mitch
Re: Git unstash - drop option?
Posted by Mitch Claborn <in...@hatcherymanager.com>.
Thanks Michael, that helps a lot.
Mitch
On Tue, Apr 1, 2025 at 6:51 PM Michael Bien <mb...@gmail.com> wrote:
> Hi Mitch,
>
> you should be able to drop stash items from the repository window.
>
> Team -> Repository -> Repository Browser -> Stashes
>
>
> The git stash integration is a bit lacking in NB since I believe it was
> added long after NB already had a version system neutral "shelve changes"
> concept in place.
>
> I will try to get some smaller improvements in
> https://github.com/apache/netbeans/pull/8373, not sure if they make it
> into NB 26.
>
> An enhancement I would like to see (since I use it often via CLI) is to
> stash selected files only. Shelve does support that, however, I believe the
> current jgit version can only stash with repo scope still (I only took a
> quick look maybe I missed something).
>
> best regards,
> michael
>
>
> On 4/1/25 16:58, Mitch Claborn wrote:
> > I frequently use Git unstash from the Team menu in NetBeans. That works
> fine, but then I have to drop the stash manually from the command line. Is
> there any way to apply and drop at the same time? (something like "git
> stash pop") Or a way to manage the stash list from NetBeans?
> >
> > Mitch
>
>
>
Re: Git unstash - drop option?
Posted by Michael Bien <mb...@gmail.com>.
Hi Mitch,
you should be able to drop stash items from the repository window.
Team -> Repository -> Repository Browser -> Stashes
The git stash integration is a bit lacking in NB since I believe it was added long after NB already had a version system neutral "shelve changes" concept in place.
I will try to get some smaller improvements in https://github.com/apache/netbeans/pull/8373, not sure if they make it into NB 26.
An enhancement I would like to see (since I use it often via CLI) is to stash selected files only. Shelve does support that, however, I believe the current jgit version can only stash with repo scope still (I only took a quick look maybe I missed something).
best regards,
michael
On 4/1/25 16:58, Mitch Claborn wrote:
> I frequently use Git unstash from the Team menu in NetBeans. That works fine, but then I have to drop the stash manually from the command line. Is there any way to apply and drop at the same time? (something like "git stash pop") Or a way to manage the stash list from NetBeans?
>
> Mitch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists