git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Draft v1.5.0 release notes

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 2, 2007, 02:57 UTC
Message-ID
<20070102025748.GA27690@spearce.org>
In-Reply-To
<4599C3E8.5060209@midwinter.com>
Steven Grimm <koreth@midwinter.com> wrote:
Show 19 quoted lines
> Junio C Hamano wrote:
> > - There is a configuration variable core.legacyheaders that
> >   changes the format of loose objects so that they are more
> >   efficient to pack and to send out of the repository over git
> >   native protocol, since v1.4.2.  However, this format cannot
> >   be read by git older than that version; people fetching from
> >   your repository using older clients over dumb transports
> >   (e.g. http) using older versions of git will also be
> >   affected.  This is not enabled by default.
> >
> > - Since v1.4.3, configuration repack.usedeltabaseoffset allows
> >   packfile to be created in more space efficient format, which
> >   cannot be read by git older than that version.  This is not
> >   enabled by default.
> >  
> 
> For people in non-public development environments where there's 
> absolutely no possibility of someone hitting a repo with an old client, 
> presumably these options should both be enabled.

Or even in public ones, but where access by dumb clients isn't offered (only anonymous or ssh based git native protocol is used).

Show 5 quoted lines
> I wonder if it makes 
> sense to add an option to git-init-db to create a configuration file 
> with all the latest stuff enabled -- or better still, something like
> 
> git-init-db --min-version=1.4.2
That's an interesting idea.  Most users don't invoke init-db directly
however, they are using clone to copy someone else's repository.
But that option could easily be offered on both commands, with
clone just passing it through to init-db.
 
Show 5 quoted lines
> that would enable all the non-backward-compatible stuff in the newly 
> created repository. And then a special case "--min-version=current" to 
> use all the most optimal settings for the current release, useful in 
> environments like corporate LANs where the tool versions are centrally 
> managed.

Actually I wonder if "--min-version=current" shouldn't just be the default. Most users are going to init-db or clone locally and use only the current version of Git (or later) against that repository.

Though that probably would break someone who runs multiple versions of Git on the same system, because they have some strange reason for doing so[*1*]. And it would certainly cause problems for users who then rsync that repository (or scp it) to a webhost and expect users with older versions of Git to be able to access it with a commit-walker client. But that would be less of a problem if we could teach users to first clone their repository before publishing it, e.g.:

    git clone --bare --min-version=1.2 . ../myproj.git
*1*: I'm not talking about Git developers here.  I think most Git
     developers run a `production` version of Git that they use for
     actual revisioning, and other versions for testing, and those
     testing versions are only used against testing repositories
     that hold non-live data.
-- 
Shawn.
Previous: Steven GrimmNext: David Kågedal
Message 3 of 5 in “Draft v1.5.0 release notes”
  1. Junio C HamanoJan 2, 2007
  2. Steven GrimmJan 2, 2007
  3. Shawn O. PearceJan 2, 2007
  4. David KågedalJan 2, 2007
  5. Shawn O. PearceJan 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.