Hi:
On Wed, Jun 4, 2008 at 8:19 AM, Edward Z. Yang
<[EMAIL PROTECTED]> wrote:
>
> That being said, I was curious to know whether or not there was any
> interest in a Portable edition of msysgit.
I am interested in a Portable ("Portable Apps"?) edition, but its not
a burning need for me. I could use it whenever I borrow a coworker's
laptop or whenever I'm in a net-cafe (not very likely)... ;-) I used
the Firefox 3 beta series via Portable Apps and it was very useful for
testing.
> I've already gotten a
> prototype working with a quick batch script:
>
> rem git-gui.bat
> set HOMEDRIVE=%CD:~0,2%
> set HOMEPATH=\
> start PortableApps\Git\bin\wish PortableApps\Git\bin\git-gui
Looks good.
Perhaps it would be more portable to reuse the concepts in git.cmd
instead of setting the hard-coded path. (e.g. one cannot guarantee
"PortableApps\Git") Take a look at the FOR for setting the path. Also,
is it necessary to call wish.exe directly? Would it be better or worse
to let git.exe gui do it?
> Obviously, all that's necessary is to install msysgit into the
> PortableApps\Git directory on your USB key. Then double-click the batch
> scripts and watch the magic happen! Setting HOMEDRIVE/HOMEPATH ensures
> that git configuration files get written to the USB key root directory;
> with some modification you can make it be written anywhere you please.
One interesting thing is that "USB memory" devices for Windows are
often FAT format, so some install size optimations and features
dependent on NTFS will not work. In this age however, I suppose its
better to just reformat the whole device to NTFS or use TrueCrypt or
other fs-in-a-container tech.
> It might be a good idea to offer the option to install Git portably.
>
> That all being said, there are a number of notable difficulties when
> working with git portably.
> 1. Running git-gui like this bypasses the repository selection screen if
> 2. git-gui seems to pick up strange *.tmp files in the root of my USB
> 3. This has been mentioned before, but SSH is pretty broken on git-gui,
Thanks for documenting this.
(I personally don't use these areas of msysgit)
Best regards,
Clifford Caoile