Re: [BUG?] Confusion with git stash list

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

 



On Fri, Jul 21, 2023 at 9:05 AM <rsbecker@xxxxxxxxxxxxx> wrote:
> It is simple to set up. You do need at least one stash, but the contents are
> irrelevant. So given any repository, use git stash push. Then use git stash
> list --all.

The `git stash list` command is secretly just a front end to `git log`
that inserts particular options, so `--all` is passed to `git log` and
does what it does. That's why you see what you see (remember
that `git stash list` includes `-g` / `--walk-reflogs` so `--all` here
means "all reflogs").

Whether this is *intended* is another question, but to stop it,
`git stash` would have to notice and alter / remove `--all` before
passing the rest of the command on to `git log`.

Chris




[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