Re: [RFC PATCH 1/1] push: introduce '--heads' option
- From
Teng Long <dyroneteng@gmail.com>
- Date
- Dec 6, 2022, 12:18 UTC
- Message-ID
- <20221206121853.69819-1-tenglong.tl@alibaba-inc.com>
- In-Reply-To
- <CAOLTT8QcvPfXKap2aa6iyi0jq-cySL=XjDP2G2wG8m57=u0aGw@mail.gmail.com>
Show 10 quoted lines
> > '--all' was introduced for a long time, meanwhile, git supports to > > customize the storage location under "refs/". when a new git user see > > the usage like, 'git push origin --all', we might feel like we're > > pushing _all_ the refs instead of just branches without looking at the > > documents until we found the related description of it or '--mirror'. > > > > "--all" sounds like it will include all things: branches, tags, but it only > includes branches under ref/heads/, which does cause a little confusion > for users.
"under refs/heads", right (^ヮ^)? But The overall is nice to me, I'm sure I will use some to revise.
> Maybe OPT_ALIAS() will be better?
I think it's suitable for this if there is no misunderstanding for 'OPT_ALIAS()'.
Thanks.