using multiple version of git simultaneously
Hi,
I'm trying to use different version of git simultaneously. So how can i append some suffix (like "--program-suffix=git1.8) so that i can distinguish between different versions.
Signature · 2 lines
Cheers arif
Quoted 3 lines · arif
I'm trying to use different version of git simultaneously. So how can i append some suffix (like "--program-suffix=git1.8) so that i can distinguish between different versions.
Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).
Quoted 6 lines · Tomas Carnecky
Quoted 3 lines · arif
I'm trying to use different version of git simultaneously. So how can i append some suffix (like "--program-suffix=git1.8) so that i can distinguish between different versions.
Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).
Once you have done that, you can also symlink the binary from each into your regular PATH (e.g., ln -s ~/git/1.8.0/bin/git ~/bin/git.v1.8) to make it easy to switch between them. The installed exec-path is baked in at compile-time, so it finds the correct git sub-programs properly.
I keep a couple dozen built versions of git around like this for quick regression testing of bugs we see on the list.
-Peff
Quoted 3 lines · Jeff King
Quoted 1 line · Tomas Carnecky
On Sat, 17 Nov 2012 20:25:21 +0600, arif <[email protected]> wrote:
<snip>
Quoted 8 lines
Quoted 2 lines
Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).
Once you have done that, you can also symlink the binary from each into your regular PATH (e.g., ln -s ~/git/1.8.0/bin/git ~/bin/git.v1.8) to make it easy to switch between them. The installed exec-path is baked in at compile-time, so it finds the correct git sub-programs properly.
Quoted 5 lines
I keep a couple dozen built versions of git around like this for quick regression testing of bugs we see on the list.
-Peff
So what you are saying that, making a symlink for "git" is sufficient. I don't need to make symlinks for ever git subbinaries.
Is that correct?
Signature · 2 lines
Cheers arif