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

Re: [PATCH 1/2] replace: use a GIT_NO_REPLACE_OBJECTS env variable

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 18, 2009, 06:49 UTC
Message-ID
<200911180749.47243.chriscool@tuxfamily.org>
In-Reply-To
<4B026DE8.9070905@drmicha.warpmail.net>
On mardi 17 novembre 2009, Michael J Gruber wrote:
Show 17 quoted lines
> Christian Couder venit, vidit, dixit 17.11.2009 06:11:
> > This environment variable is set when the --no-replace-objects
> > flag is passed to git, and it is read when other environment
> > variables are read.
> >
> > It is useful for example for scripts, as the git commands used in
> > them can now be aware that they must not read replace refs.
> >
> > Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
>
> Tested-by: Michael J Gruber <git@drmicha.warpmail.net>
>
> :) This works, thanks, as well as the gitk patch 2/2, which is difficult
> to cover by test scripts. Some OSes (or rather certain setenv/putenv
> variants) have problems distinguishing an unset variable from an empty
> one. I think we've worked around this, but avoiding it is safer, as J6t
> pointed out.
Ok.

Thanks for testing, Christian.

Previous: Michael J Gruber
Message 5 of 5 in “replace: use a GIT_NO_REPLACE_OBJECTS env variable”
  1. 1/2 replace: use a GIT_NO_REPLACE_OBJECTS env variableChristian Couder, Nov 17, 2009
  2. Johannes SixtNov 17, 2009
  3. Christian CouderNov 18, 2009
  4. Michael J GruberNov 17, 2009
  5. Christian CouderNov 18, 2009

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.