Avoid to pushing multiple commits by inadvertance
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Apr 26 15:20:53 UTC 2024
Le 26/04/2024 à 17:06, Scott Kostyshak a écrit :
> On Fri, Apr 26, 2024 at 03:39:34PM GMT, Jean-Marc Lasgouttes wrote:
>> Hi!
>>
>> Since it is Friday, I decided to do something about my tendency to push
>> several commits by mistake. The attached pre-push hook refuses to push more
>> than one commit unless the "multi" variable is set.
>>
>> If you want this hook to be active for all your repositories, you can use
>> git config --global core.hooksPath /my/hok/dir/
>>
>> JMarc
>
> Nice, thanks for sharing! This is better than the hackish method I use.
I am not sure that it works in all situations... In particular I do
nothing with the refs/xxx values that I have, I am sure that they should
go somewhere to specify the commits (see comments inside the script).
JMarc
More information about the lyx-devel
mailing list