Re: feature request - add --only-author option to git push
- From
- Toni 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.