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

Re: [PATCH] git.c: add --index-file command-line option.

From
Manlio Perillo <manlio.perillo@gmail.com>
Date
Dec 15, 2012, 18:53 UTC
Message-ID
<50CCC73B.3070802@gmail.com>
In-Reply-To
<7vpq2btcqp.fsf@alter.siamese.dyndns.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 15/12/2012 19:02, Junio C Hamano ha scritto:
Show 8 quoted lines
> Manlio Perillo <manlio.perillo@gmail.com> writes:
> 
>> Unlike other environment variables (e.g. GIT_WORK_TREE,
>> GIT_NAMESPACE), it was not possible to set the GIT_INDEX_FILE
>> environment variable using the command line.
> 
> Is this necessary?  I'd prefer to see a better reason than "just
> because others have it".

A long running program will be able to tell git to use an alternate index file, without having to modify its own environment, or having to use execvpe (I assume this is the reason why it is possible to specify GIT_WORK_TREE from command line).

Regards  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAlDMxzsACgkQscQJ24LbaUSzEQCYymkZa6JrT42OzigRfDgc5Hss gwCgjIzs1b0hEyu1WAgDgCir9XalDN8= =GtMF -----END PGP SIGNATURE-----

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “git.c: add --index-file command-line option.”
  1. git.c: add --index-file command-line option.Manlio Perillo, Dec 14, 2012
  2. Junio C HamanoDec 15, 2012
  3. Manlio PerilloDec 15, 2012
  4. Junio C HamanoDec 15, 2012
  5. Manlio PerilloDec 15, 2012
  6. Junio C HamanoDec 16, 2012
  7. Manlio PerilloDec 16, 2012

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.