git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH 1/1] push: introduce '--heads' option

From
Teng Long <dyroneteng@gmail.com>
Date
Apr 30, 2023, 01:05 UTC
Message-ID
<20230430010553.4253-1-tenglong.tl@alibaba-inc.com>
In-Reply-To
<644bba3f96e3b_1c66e29436@chronos.notmuch>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 18 quoted lines
> Teng Long wrote:
>> From: Teng Long <dyroneteng@gmail.com>
>> 
>> The '--all' option of git-push built-in cmd support to push all branches
>> (refs under refs/heads) to remote. Under the usage, a user can easlily
>> work in some scenarios, for example, branches synchronization and batch
>> upload.
>> 
>> '--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'.
>
>Completely agree.
>
>This is something I spotted a long time ago. Although I would prefer
>`--branches` over `--heads`.

I will cook this recently, maybe we need some well prepared test cases at first.

Thanks.
Previous: Felipe ContrerasNext: Teng Long
Message 6 of 18 in “push: introduce '--heads' option”
  1. 0/1 push: introduce '--heads' optionTeng Long, Dec 5, 2022
  2. 1/1 push: introduce '--heads' optionTeng Long, Dec 5, 2022
  3. ZheNing HuDec 5, 2022
  4. Teng LongDec 6, 2022
  5. Felipe ContrerasApr 28, 2023
  6. Teng LongApr 30, 2023
  7. 0/1 push: introduce '--branches' optionTeng Long, May 6, 2023
  8. 1/1 push: introduce '--branches' optionTeng Long, May 6, 2023
  9. 0/1 push: introduce '--branches' optionTeng Long, May 6, 2023
  10. Junio C HamanoDec 5, 2022
  11. Teng LongDec 15, 2022
  12. Teng LongApr 28, 2023
  13. Junio C HamanoApr 28, 2023
  14. Teng LongApr 30, 2023
  15. 0/1 push: introduce '--branches' optionTeng Long, May 6, 2023
  16. 1/1 push: introduce '--branches' optionTeng Long, May 6, 2023
  17. Junio C HamanoMay 6, 2023
  18. Teng LongMay 7, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.