{"thread":{"id":"273","subject":"Re: Humble request of 'git' developers + [PATCH] Slight enhancement of GIT wrapper","startedAt":"2005-04-23T23:47:29Z","lastAt":"2005-04-23T23:47:29Z","messageCount":1,"participants":["Pavel Pisa"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"1438","messageId":"200504240147.29642.pisa@cmp.felk.cvut.cz","threadId":"273","inReplyTo":null,"subject":"Re: Humble request of 'git' developers + [PATCH] Slight enhancement of GIT wrapper","fromName":"Pavel Pisa","fromEmail":"pisa@cmp.felk.cvut.cz","sentAt":"2005-04-23T23:47:29Z","receivedAt":"2005-04-23T23:47:29Z","isPatch":true,"sender":{"key":"pisa@cmp.felk.cvut.cz","avatar":null},"body":"Hello All,\n\nI am resending patch from 13 April\nwhich I have send Petr Baudis.\nHe has said, that he combines\nbest ideas from more similar patches\nbut he has not found time for that probably.\nIt is updated according his\nand Johannes Schindelin's remarks.\n\nIt enables to move all growing number\nof git scripts and programs to the any\ndirectory out of the search path.\nActually only \"git\" script needs to be\nlinked symbolically to some directory\non the search path. This solution worked\nfor me with many versions of \"git-pasky\".\n\nI would vote for this solution\nand for single public exposed multiplexer\nexecutable script.\nIt is how big portable place independent\nprojects solve hiding of garbage from\nthe search path.\n\nBest wishes\n\n                Pavel Pisa\n        e-mail: pisa@cmp.felk.cvut.cz\n        www:    http://cmp.felk.cvut.cz/~pisa\n        work:   http://www.pikron.com\n\n\n\n\nSlight enhancement of GIT wrapper\n\nGit multiplexer and scripts can reside in non PATH directories\nand linking git multiplexer into some searchables dirs makes the trick.\n\nSigned-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>\n\n--- git.orig\t2005-04-24 00:12:56.000000000 +0200\n+++ git\t2005-04-24 01:28:01.000000000 +0200\n@@ -17,6 +17,28 @@\n \texit 1\n }\n \n+if [ -z \"$GIT_TOOLS_DIR\" ] ; then\n+\tGIT_MUXBINARY_DIR=\"$(dirname \"$0\")\"\n+\tif [ -h \"$0\" ]; then\n+\t\t#GIT_TOOLS_DIR=\"$(ls -l \"$0\" | sed 's/^.*-> *\\(.*\\) *$/\\1/')\"\n+\t\tGIT_TOOLS_DIR=\"$(ls -L \"$0\")\"\n+\t        GIT_TOOLS_DIR=\"$(dirname \"$GIT_TOOLS_DIR\")\"\n+\t\tGIT_TOOLS_DIR=\"$(cd \"$GIT_MUXBINARY_DIR\" ; cd \"$GIT_TOOLS_DIR\" ; pwd )\"\n+\telse\n+\t\tGIT_TOOLS_DIR=\"$(cd \"$GIT_MUXBINARY_DIR\" ; pwd )\"\n+\tfi\n+\n+\tif [ -z \"$(echo :$PATH: | sed -n -e 's#:'\"$GIT_TOOLS_DIR\"':#yes#p' )\" ] ; then\n+\t\texport PATH=\"$GIT_TOOLS_DIR:$PATH\"\n+\tfi\n+\n+\texport GIT_TOOLS_DIR\n+fi\n+\n+#echo GIT_TOOLS_DIR=$GIT_TOOLS_DIR\n+#echo PATH=$PATH\n+#echo CWD=$(pwd)\n+#exit \n \n help () {\n \tcat <<__END__\n"}]}