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

Re: [PATCH v2] Allow to control where the replace refs are looked for

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 12, 2015, 22:36 UTC
Message-ID
<xmqqioasblm2.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqmw04blwm.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 25 quoted lines
> Mike Hommey <mh@glandium.org> writes:
>
>> It can be useful to have grafts or replace refs for specific use-cases while
>> keeping the default "view" of the repository pristine (or with a different
>> set of grafts/replace refs).
>>
>> It is possible to use a different graft file with GIT_GRAFT_FILE, but while
>> replace refs are more powerful, they don't have an equivalent override.
>>
>> Add a GIT_REPLACE_REF_BASE environment variable to control where git is
>> going to look for replace refs.
>>
>> Signed-off-by: Mike Hommey <mh@glandium.org>
>> ---
>>  builtin/replace.c | 6 +++---
>>  cache.h           | 2 ++
>>  environment.c     | 6 ++++++
>>  log-tree.c        | 5 +++--
>>  refs.c            | 3 ++-
>>  5 files changed, 16 insertions(+), 6 deletions(-)
>
> Thanks.
>
> "git am" seems to be seeing a patch based on a stale base.  What
> branch did you base this on?

Ah, no need to resend; the conflict is with recently merged bc/object-id.

Thanks.
Previous: Junio C Hamano
Message 9 of 9 in “Allow to control the namespace for replace refs”
  1. Allow to control the namespace for replace refsMike Hommey, Jun 11, 2015
  2. Junio C HamanoJun 11, 2015
  3. Mike HommeyJun 11, 2015
  4. Junio C HamanoJun 11, 2015
  5. Mike HommeyJun 11, 2015
  6. Junio C HamanoJun 11, 2015
  7. Allow to control where the replace refs are looked forMike Hommey, Jun 11, 2015
  8. Junio C HamanoJun 12, 2015
  9. Junio C HamanoJun 12, 2015

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.