Re: Behaviour of 'git stash show' when a stash has untracked files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> I sketched out a possible solution in:
>
>   https://public-inbox.org/git/20170317141417.g2oenl67k74nlqrq@xxxxxxxxxxxxxxxxxxxxx/
>
> though I share your concerns over whether people would be annoyed to see
> the existing "stash show" output changed.

Forgot about that one.  I sometimes do "stash show -p | apply", so
changing what is included without any option would be annoying, and
not having an option to restore the original behaviour would be
doubly irritating.  

Perhaps "stash show [--[untracked|index|worktree]]" to show only
one, without the "==> I am this variant <==" label, would be
workable, and with no option we would do --worktree that is the
traditional output.

In addition "stash show --all" could be the output in your earlier
patch.  I like the way it uses the '.' pathspec to squelch the
entire thing when there is no change ;-)

Thanks.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux