{"thread":{"id":"32136","subject":"using multiple version of git simultaneously","startedAt":"2012-11-17T14:25:21Z","lastAt":"2012-11-18T11:04:50Z","messageCount":4,"participants":["arif","Tomas Carnecky","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"203422","messageId":"k886on$nn5$1@ger.gmane.org","threadId":"32136","inReplyTo":null,"subject":"using multiple version of git simultaneously","fromName":"arif","fromEmail":"aftnix@gmail.com","sentAt":"2012-11-17T14:25:21Z","receivedAt":"2012-11-17T14:25:21Z","isPatch":false,"sender":{"key":"aftnix@gmail.com","avatar":"https://gravatar.com/avatar/7028ed696aeb1eb50ffbf5f7c6332488896b7784548d55311cb4904579d92902?d=mp&s=160"},"body":"Hi,\n\nI'm trying to use different version of git simultaneously. So how can i\nappend some suffix (like \"--program-suffix=git1.8) so that i can\ndistinguish between different versions.\n-- \nCheers\narif\n"},{"id":"203424","messageId":"1353163831-ner-9354@calvin","threadId":"32136","inReplyTo":"k886on$nn5$1@ger.gmane.org","subject":"Re: using multiple version of git simultaneously","fromName":"Tomas Carnecky","fromEmail":"tomas.carnecky@gmail.com","sentAt":"2012-11-17T14:50:31Z","receivedAt":"2012-11-17T14:50:31Z","isPatch":false,"sender":{"key":"tomas.carnecky@gmail.com","avatar":null},"body":"On Sat, 17 Nov 2012 20:25:21 +0600, arif <aftnix@gmail.com> wrote:\n> I'm trying to use different version of git simultaneously. So how can i\n> append some suffix (like \"--program-suffix=git1.8) so that i can\n> distinguish between different versions.\n\nInstall each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).\n"},{"id":"203427","messageId":"20121117161631.GA18844@sigill.intra.peff.net","threadId":"32136","inReplyTo":"1353163831-ner-9354@calvin","subject":"Re: using multiple version of git simultaneously","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-11-17T16:16:32Z","receivedAt":"2012-11-17T16:16:32Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sat, Nov 17, 2012 at 02:50:31PM +0000, Tomas Carnecky wrote:\n\n> On Sat, 17 Nov 2012 20:25:21 +0600, arif <aftnix@gmail.com> wrote:\n> > I'm trying to use different version of git simultaneously. So how can i\n> > append some suffix (like \"--program-suffix=git1.8) so that i can\n> > distinguish between different versions.\n> \n> Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).\n\nOnce you have done that, you can also symlink the binary from each into\nyour regular PATH (e.g., ln -s ~/git/1.8.0/bin/git ~/bin/git.v1.8) to\nmake it easy to switch between them. The installed exec-path is baked in\nat compile-time, so it finds the correct git sub-programs properly.\n\nI keep a couple dozen built versions of git around like this for quick\nregression testing of bugs we see on the list.\n\n-Peff\n"},{"id":"203482","messageId":"50A8C0D2.3000001@gmail.com","threadId":"32136","inReplyTo":"20121117161631.GA18844@sigill.intra.peff.net","subject":"Re: using multiple version of git simultaneously","fromName":"arif","fromEmail":"aftnix@gmail.com","sentAt":"2012-11-18T11:04:50Z","receivedAt":"2012-11-18T11:04:50Z","isPatch":false,"sender":{"key":"aftnix@gmail.com","avatar":"https://gravatar.com/avatar/7028ed696aeb1eb50ffbf5f7c6332488896b7784548d55311cb4904579d92902?d=mp&s=160"},"body":"On 11/17/2012 10:16 PM, Jeff King wrote:\n> On Sat, Nov 17, 2012 at 02:50:31PM +0000, Tomas Carnecky wrote:\n> \n>> On Sat, 17 Nov 2012 20:25:21 +0600, arif <aftnix@gmail.com> wrote:\n<snip>\n>\n>> Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).\n> \n> Once you have done that, you can also symlink the binary from each into\n> your regular PATH (e.g., ln -s ~/git/1.8.0/bin/git ~/bin/git.v1.8) to\n> make it easy to switch between them. The installed exec-path is baked in\n> at compile-time, so it finds the correct git sub-programs properly.\n> \n> I keep a couple dozen built versions of git around like this for quick\n> regression testing of bugs we see on the list.\n> \n> -Peff\n> \n\nSo what you are saying that, making a symlink for \"git\" is sufficient. I\ndon't need to make symlinks for ever git subbinaries.\n\nIs that correct?\n\n\n-- \nCheers\narif\n"}]}