On Wednesday 02 July 2008 15:24:20 Gerrit Pape wrote:
> On Mon, Jun 16, 2008 at 12:03:02AM +0300, George Danchev wrote:
> > Hi,
> >
> >     Please find the patch below (I believe it won't break any porcelain
> > above it) which exposes the value of GIR_REPO_VERSION (git's internal
> > repository format) via --version. It will benefit the recently added to
> > the dpkg-source "3.0 (git)" source format. If it changes in some
> > incompatible way
>
> Hi George, you should be able to query that information repo-specific
> through
>
>  $ git config --get core.repositoryformatversion
>
> I'm not sure why you want this information for the git programs, the
> GIT_REPO_VERSION is tied to the git version.

Hello Gerrit,

Sure, it is pretty easy to get repositoryformatversion's value found in the 
[core] section of the .git/config file and that is not the meant goal. The 
meant one is GIT_REPO_VERSION since it is being compared to the 
repositoryformatversion  (like GIT_REPO_VERSION < repository_format_version)
in setup.c:check_repository_format_gently(int *nongit_ok).  So if my git 
program dies with:

"fatal: Expected git repo version <= V, found V+1"

because repositoryformatversion is bigger than GIT_REPO_VERSION, I would like 
to be able to query its internal GIT_REPO_VERSION in order to determine 
which .git/* my git is able to process.





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to