git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Lichtenheld <frank@lichtenheld.de>
To: Josh Elsasser <josh@elsasser.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Allow git-cvsserver database table name prefix to be specified.
Date: Tue, 18 Mar 2008 09:09:13 +0100	[thread overview]
Message-ID: <20080318080913.GF18624@mail-vs.djpig.de> (raw)
In-Reply-To: <12058051092735-git-send-email-josh@elsasser.org>

On Mon, Mar 17, 2008 at 06:51:49PM -0700, Josh Elsasser wrote:
> Adds a gitcvs.dbprefix config variable, the contents of which are
> prepended to any database tables used by git-cvsserver. The same
> substutions as gitcvs.dbname and gitcvs.dbuser are supported, and any
> non-alphabetic characters are replaced with underscores.
> ---
> The purpose of this patch is to easily allow a single database (think
> PostgreSQL or MySQL) to be shared by multiple repositories.

For the record, I think that this is a good idea, but have no time
to really test it.

> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index 0865f4e..ca232cf 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -661,6 +661,13 @@ gitcvs.dbuser, gitcvs.dbpass::
>  	'gitcvs.dbuser' supports variable substitution (see
>  	linkgit:git-cvsserver[1] for details).
>  
> +gitcvs.dbprefix::
> +	Database table name prefix. This will be prepended to any
> +	tables used, allowing a single database to be used for deveral

Typo s/deveral/several/

> +gitcvs.dbprefix::
> +	Database table name prefix. Supports variable substitution
> +	(see below). Any non-alphabetic characters will be replaces

Typo s/replaces/replaced/

> +	with underscores.
> +
>  All variables can also be set per access method, see <<configaccessmethod,above>>.
>  
>  Variable substitution
[...]
> @@ -2427,10 +2431,10 @@ sub update
>      # first lets get the commit list
>      $ENV{GIT_DIR} = $self->{git_path};
>  
> -    my $commitsha1 = `git rev-parse $self->{module}`;
> +    my $commitsha1 = `git-rev-parse $self->{module}`;
>      chomp $commitsha1;
>  
> -    my $commitinfo = `git cat-file commit $self->{module} 2>&1`;
> +    my $commitinfo = `git-cat-file commit $self->{module} 2>&1`;
>      unless ( $commitinfo =~ /tree\s+[a-zA-Z0-9]{40}/ )

Unrelated whitespace changes?

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

      reply	other threads:[~2008-03-18  8:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18  1:51 [PATCH] Allow git-cvsserver database table name prefix to be specified Josh Elsasser
2008-03-18  8:09 ` Frank Lichtenheld [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080318080913.GF18624@mail-vs.djpig.de \
    --to=frank@lichtenheld.de \
    --cc=git@vger.kernel.org \
    --cc=josh@elsasser.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).