Re: [PATCH] git.c: add --index-file command-line option.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 16/12/2012 06:59, Junio C Hamano ha scritto: I Manlio Perillo manlio.peri...@gmail.com 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. Of course it is possible, but a command-line option is more convenient, IMHO. Regards Manlio -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlDNhGsACgkQscQJ24LbaUQ0dQCglUAw8zwRKNeDUGznfrm1xFKf GQsAnA/ucztku4v9LnIr0Lv/gyl5ULiT =j/1w -END PGP SIGNATURE- -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git.c: add --index-file command-line option.
Manlio Perillo manlio.peri...@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. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git.c: add --index-file command-line option.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 15/12/2012 19:02, Junio C Hamano ha scritto: Manlio Perillo manlio.peri...@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- -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git.c: add --index-file command-line option.
Manlio Perillo manlio.peri...@gmail.com writes: Il 15/12/2012 19:02, Junio C Hamano ha scritto: Manlio Perillo manlio.peri...@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,... Hrm, isn't that the single-shot environment export syntax GIT_INDEX_FILE=foo git blah is for? Is there a real-world need for this? -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git.c: add --index-file command-line option.
-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 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,... Hrm, isn't that the single-shot environment export syntax GIT_INDEX_FILE=foo git blah is for? Is there a real-world need for this? This works with a shell. I'm using Python to write a custom git command. Regards Manlio -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlDM8yQACgkQscQJ24LbaUTftQCbBC7D9P7Sqlr9GzWuCIcIHPf2 aQcAn13+d4trLZS4izGvZtoaopMav4nV =vfb6 -END PGP SIGNATURE- -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git.c: add --index-file command-line option.
I Manlio Perillo manlio.peri...@gmail.com 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 the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html