Re: [PATCH v2 04/12] builtin/show-ref: fix dead code when passing patterns
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 30, 2023, 18:24 UTC
- Message-ID
- <ZT/01cjmdWrSXs+c@nand.local>
- In-Reply-To
- <87afcee830caab2782ce693c1f961df6fea6e7b5.1698314128.git.ps@pks.im>
On Thu, Oct 26, 2023 at 11:56:33AM +0200, Patrick Steinhardt wrote:
Show 7 quoted lines
> When passing patterns to `git show-ref` we have some code that will > cause us to die if `verify && !quiet` is true. But because `verify` > indicates a different subcommand of git-show-ref(1) that causes us to > execute `cmd_show_ref__verify()` and not `cmd_show_ref__patterns()`, the > condition cannot ever be true. > > Let's remove this dead code.
Makes sense. Let's read on...
Thanks, Taylor