Re: Server-side preventing some files from being overwritten

2016-07-21 Thread Thorsten Glaser
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 •

Re: Server-side preventing some files from being overwritten

2016-07-15 Thread Thorsten Glaser
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

Re: Server-side preventing some files from being overwritten

2016-07-14 Thread Thorsten Glaser
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

Re: Server-side preventing some files from being overwritten

2016-07-14 Thread Thorsten Glaser
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

Server-side preventing some files from being overwritten

2016-07-14 Thread Thorsten Glaser
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

[PATCH] builtin/tag.c: Add tag name to user message

2014-05-07 Thread Thorsten Glaser
Display the tag name about to be added to the user during interactive editing. Signed-off-by: Thorsten Glaser t...@debian.org Signed-off-by: Richard Hartmann ric...@debian.org --- builtin/tag.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/tag.c b/builtin

[PATCH] fix shell syntax error in template

2013-08-30 Thread Thorsten Glaser
an if clause must not be empty; add a colon command Signed-off-by: Thorsten Glaser t.gla...@tarent.de --- templates/hooks--pre-push.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/hooks--pre-push.sample b/templates/hooks--pre-push.sample index 15ab6d8..1f3bceb 100755

Re: git should not use a default user.email config value

2013-08-13 Thread Thorsten Glaser
Matthieu Moy dixit: An opt-in auto-detection would be cool for people who really work in a controlled environment, so that the sysadmin could enable it from Sounds like a plan ;-) I think with several people chiming in on this, while that proposal would affect a majority of people, it would do

Re: git should not use a default user.email config value

2013-08-10 Thread Thorsten Glaser
Jeff King dixit: It was not clear to me whether his site has /etc/mailname. If it does Some may, some may not but… But from his description, the machine may even have a split-horizon name in /etc/mailname, and we can do nothing at all about that. … that won’t happen. The problem is that they

Re: git should not use a default user.email config value

2013-08-09 Thread Thorsten Glaser
Jonathan Nieder dixit: Can you say a little more about your setup? In a university environment with sysadmin-managed email and /etc/mailname set up correctly it is handy that people can start working without doing Ah okay. We don’t have /etc/mailname set up I think and, additionally, the Unix

Re: Multiple threads of compression

2012-11-26 Thread Thorsten Glaser
Brandon Casey dixit: The number of threads that pack uses can be configured in the global or system gitconfig file by setting pack.threads. […] The other setting you should probably look at is pack.windowMemory which should help you control the amount of memory git uses while packing. Also look

Multiple threads of compression

2012-11-25 Thread Thorsten Glaser
Hi, I’m asking here informally first, because my information relates to a quite old version (the one from lenny-backports). A tl;dr is at the end. On a multi-core machine, the garbage collection of git, as well as pack compression on the server side when someone clones a repository remotely, the