Re: [PATCH v3 1/2] builtin/remote.c: parse options in 'rename'
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 5, 2022, 14:28 UTC
- Message-ID
- <220305.86tucc3213.gmgdl@evledraar.gmail.com>
- In-Reply-To
- <b76da50b549d71b3e61f74c6250fea595ee2b2c1.1646346287.git.me@ttaylorr.com>
On Thu, Mar 03 2022, Taylor Blau wrote:
> The 'git remote rename' command doesn't currently take any command-line > arguments besides the existing and new name of a remote, and so has no > need to call parse_options().
I think nothing needs to change here in the body of the test, but just a correction: We do in fact use parse_options() here in the pre-image. I.e.:
git remote -h
git remote rename -hI.e. we'll detect "-h", emit the appropriate usage etc.