EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  2025  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: file format enforcing?
From: Michael Davidsaver via Core-talk <core-talk at aps.anl.gov>
To: Ben Franksen <benjamin.franksen at helmholtz-berlin.de>, "EPICS core-talk (core-talk at aps.anl.gov)" <core-talk at aps.anl.gov>
Date: Mon, 19 Apr 2021 10:11:06 -0700
On 4/19/21 9:59 AM, Ben Franksen via Core-talk wrote:
> Am 19.04.21 um 04:45 schrieb Hugo Slepicka via Core-talk:
>> For the client-side Git configuration this tool may be of help:
>> https://pre-commit.com/
>>
>> You can define the rules to be applied as well as develop your own rules.
>>
>> After a very small and simple procedure,  clients will have all commit
>> attempts before they can really commit.
> 
> If built into base, pre-commit hooks would make it difficult to quickly
> commit unclean changes on a working branch with the idea of postponing
> cleanup for later amends/rebases. IMO the right place for such a check
> is before merging a PR, i.e. as part of the CI.

I guess it hasn't been explicitly stated so far.  fyi. git hooks not copied
by git-clone.  This is considered a security feature.  eg. so you can clone
and manipulate some random repository without having to worry about running
scripts/code contained within it.  (of course once you 'make' all bets are off)

eg. the sample .git/hooks/ created by git-init and git-clone come from the
local '/usr/share/git-core/templates/' by default.

Replies:
Re: file format enforcing? Ben Franksen via Core-talk
References:
file format enforcing? Zimoch Dirk (PSI) via Core-talk
Re: file format enforcing? Michael Davidsaver via Core-talk
RE: file format enforcing? Freddie Akeroyd - STFC UKRI via Core-talk
Re: file format enforcing? Michael Davidsaver via Core-talk
Re: file format enforcing? Hugo Slepicka via Core-talk
Re: file format enforcing? Ben Franksen via Core-talk

Navigate by Date:
Prev: Re: file format enforcing? Ben Franksen via Core-talk
Next: Re: file format enforcing? Ben Franksen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  2025 
Navigate by Thread:
Prev: Re: file format enforcing? Ben Franksen via Core-talk
Next: Re: file format enforcing? Ben Franksen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  2025