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

2012-12-16 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 16/12/2012 06:59, Junio C Hamano ha scritto: > I > Manlio Perillo writes: > >> This works with a shell. >> I'm using Python to write a custom git command. > > I would be very surprised if Python lacked a way to spawn a > subprocess with an enviro

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

2012-12-15 Thread Junio C Hamano
I Manlio Perillo writes: > This works with a shell. > I'm using Python to write a custom git command. I would be very surprised if Python lacked a way to spawn a subprocess with an environment modified from the current process. -- To unsubscribe from this list: send the line "unsubscribe git" in

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

2012-12-15 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 15/12/2012 20:36, Junio C Hamano ha scritto: > [...] 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 ne

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

2012-12-15 Thread Junio C Hamano
Manlio Perillo writes: > Il 15/12/2012 19:02, Junio C Hamano ha scritto: >> Manlio Perillo 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 nec

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

2012-12-15 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 15/12/2012 19:02, Junio C Hamano ha scritto: > Manlio Perillo 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. >

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

2012-12-15 Thread Junio C Hamano
Manlio Perillo 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". -- To unsubscr

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

2012-12-14 Thread Manlio Perillo
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. Add a new --index-file command-line option. Update the t7500-commit test to include --index-file option coverage. The tests have been