On Thu, 21 Jul 2016, Jakub Narębski wrote:
> Or you can use third-party tools with support for such cases, such
Not if the repository is already managed by some other tool
(FusionForge, in this case).
Thanks anyway,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn •
W dniu 2016-07-14 o 18:57, Stefan Beller pisze:
> On Thu, Jul 14, 2016 at 8:31 AM, Thorsten Glaser wrote:
>> Hi *,
>>
>> is there a way, for example with some sort of pre-receive hook,
>> to prevent some files from being overwritten by a push?
>
> pre-receive hooks are a
On Fri, 15 Jul 2016, Ævar Arnfjörð Bjarmason wrote:
> I.e. it allows pushing a series which is a series of two commits which:
>
> 1. Change the forbidden file(s)
> 2. Undo changes to the forbidden file(s)
That’s precisely allowed.
bye,
//mirabilos
--
tarent solutions GmbH
Rochusstraße
On Thu, Jul 14, 2016 at 8:44 PM, Junio C Hamano wrote:
> On Thu, Jul 14, 2016 at 11:27 AM, Junio C Hamano wrote:
>> Thorsten Glaser writes:
>>
>>> if test x"0" != x"$(comm -23z \
>>> <(git ls-tree -r -z "$old" "$subdir" |
Thorsten Glaser writes:
> On Thu, 14 Jul 2016, Junio C Hamano wrote:
>
>> Can't this become simpler, e.g.
>>
>> if ! git diff-tree --quiet "$old" "$new" -- "$subdir"
>
> Thought about diff-tree, but additions are permitted,
diff-tree -r --diff-filter=a "$old"
On Thu, Jul 14, 2016 at 11:44 AM, Junio C Hamano wrote:
> On Thu, Jul 14, 2016 at 11:27 AM, Junio C Hamano wrote:
>> Thorsten Glaser writes:
>>
>>> if test x"0" != x"$(comm -23z \
>>> <(git ls-tree -r -z "$old" "$subdir"
On Thu, 14 Jul 2016, Junio C Hamano wrote:
> Can't this become simpler, e.g.
>
> if ! git diff-tree --quiet "$old" "$new" -- "$subdir"
Thought about diff-tree, but additions are permitted,
and diffing the actual file content has overhead too.
Just counting the number of object hashes
On Thu, Jul 14, 2016 at 11:27 AM, Junio C Hamano wrote:
> Thorsten Glaser writes:
>
>> if test x"0" != x"$(comm -23z \
>> <(git ls-tree -r -z "$old" "$subdir" | sort -z) \
>> <(git ls-tree -r -z "$new" "$subdir" | sort -z) | wc
Thorsten Glaser writes:
> Although I’m ordinarily loath to write GNU bash scripts, this
> helps avoiding temporary files. This works:
>
> -cutting here may damage your screen surface-
> #!/bin/bash
> export LC_ALL=C
> subdir=x/y
> while IFS=' ' read -r old new name;
On Thu, 14 Jul 2016, Stefan Beller wrote:
> go roughly like
Thanks, that did the trick!
Although I’m ordinarily loath to write GNU bash scripts, this
helps avoiding temporary files. This works:
-cutting here may damage your screen surface-
#!/bin/bash
export LC_ALL=C
subdir=x/y
while
On Thu, Jul 14, 2016 at 8:31 AM, Thorsten Glaser wrote:
> Hi *,
>
> is there a way, for example with some sort of pre-receive hook,
> to prevent some files from being overwritten by a push?
pre-receive hooks are a thing!
pre-receive
This hook is invoked by
Hi *,
is there a way, for example with some sort of pre-receive hook,
to prevent some files from being overwritten by a push?
Use case:
In some project, we use Flyway to manage the database schema,
and Jenkins to automatically build master’s HEAD after each
push (and install it, thus activating
12 matches
Mail list logo