Oh great, an answer 20 days later ... Sorry about this.
I have been reading a bit on the topic and found that for Bash we
should be using shell functions over aliases so I wrote this function
to be simply added to the .bashrc:
# 'git stash drop' confirm shell function
git() {
if [[ $@ == "sta
Laurent Humblet writes:
> Thank you for your feedback.
>
> I suppose that turning a hypothetical confirmation option 'on' would
> impact a stash pop for instance as it automatically drops the stash if
> it was applied without conflicts.
>
> What about a --confirm flag? You could then simply alia
Thank you for your feedback.
I suppose that turning a hypothetical confirmation option 'on' would
impact a stash pop for instance as it automatically drops the stash if
it was applied without conflicts.
What about a --confirm flag? You could then simply alias 'git stash
drop --confirm' locally a
On Thu, Jun 29, 2017 at 11:44 AM, Junio C Hamano wrote:
> Laurent Humblet writes:
>
>> Would it be possible to add an optional Yes/No when doing a 'git stash
>> drop'? Something similar as what happens when pushing on a remotely
>> checked out branch (with a config setting to turn the warning on
Laurent Humblet writes:
> Would it be possible to add an optional Yes/No when doing a 'git stash
> drop'? Something similar as what happens when pushing on a remotely
> checked out branch (with a config setting to turn the warning on/off).
>
> I know that you can always get your dropped stash ba
Hi all,
Would it be possible to add an optional Yes/No when doing a 'git stash
drop'? Something similar as what happens when pushing on a remotely
checked out branch (with a config setting to turn the warning on/off).
I know that you can always get your dropped stash back using git
reflog but a
6 matches
Mail list logo