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

Re: feature request - add --only-author option to git push

From
TBToni Brkic <brkict@gmail.com>
Date
Aug 27, 2020, 13:32 UTC
Message-ID
<CAF2SHyD2EO7o7RhKRGmMaffAa2=6z_rkO+CeBPWREObD=4HmuQ@mail.gmail.com>
In-Reply-To
<20200827115350.q3xzad3c2v4sgvaf@yadavpratyush.com>
Show 18 quoted lines
> >
> > The pre-push hook I do not believe could be used to solve it. Due to
> > that it seems that you cannot have options to
> > pre-hooks. I only want the pre-hook to run when having the
> > --only-authors option. Or some other way to not run the hook.
> >
> > Since there might be situation where I want to change somebody elses patch.
>
> You can pass `--no-verify` to `git push` to skip the pre-push hook:
>
>   --[no-]verify
>      Toggle the pre-push hook (see githooks(5)). The default is
>      --verify, giving the hook a chance to prevent the push. With
>      --no-verify, the hook is bypassed completely.
>
> --
> Regards,
> Pratyush Yadav

Thanks. I could do that for myself. Would not be ideal, but it would work as work around for me. I still think this would be a good feature to add to git. Not sure how the flow for requesting new features. If this would be something that would be of interest to be added I could take a look myself and try to write a patch.

Previous: Pratyush YadavNext: Junio C Hamano
Message 5 of 6 in “feature request - add --only-author option to git push”
  1. Toni BrkicAug 27, 2020
  2. Pratyush YadavAug 27, 2020
  3. Toni BrkicAug 27, 2020
  4. Pratyush YadavAug 27, 2020
  5. Toni BrkicAug 27, 2020
  6. Junio C HamanoAug 27, 2020

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.