Re: [v4] refspec: add support for negative refspecs
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 30, 2020, 21:34 UTC
- Message-ID
- <CAPig+cQUeQV0=LDQ_tY43k6z7km4X6Fm9JJVPUBoG=wY3gxDfw@mail.gmail.com>
- In-Reply-To
- <20200930212529.100458-1-jacob.e.keller@intel.com>
On Wed, Sep 30, 2020 at 5:26 PM Jacob Keller <jacob.e.keller@intel.com> wrote:
Show 6 quoted lines
> Changes since v3
> * removed the ?: usage (for real this time)
>
> + /* Note the reversal of src and dst */
> + if (refspec->pattern) {
> + const char *key = refspec->dst ?: refspec->src;Blorp.