On Sat, Apr 19, 2008 at 12:22 AM, Brian Dessent <[EMAIL PROTECTED]> wrote:
>  Explorer lies.  They are in fact hard links; the actual usage of git/bin
>  is 22704 kb, and the total install size is 37701 kb according to du.

On Sat, Apr 19, 2008 at 12:28 AM, Jim Raden <[EMAIL PROTECTED]> wrote:
> Explorer's too dumb to know about hard links. Use "du" from msysgit, from a
> git bash prompt, to determine the true usage.

Thanks for this clarification. I was in fact using Windows Explorer
and cmd.exe dir.

I now understand that msys du will give me the answer for the space of
hard links.

Also, I looked into this topic some more [1] and I found an official
Microsoft oriented tool that shows hard links, called "hlscan" [2]. It
is part of the Windows 2000 Resource Kit (!) and not part of the
normal install (*grumble*). The output looks like this:

D:\app\Git\bin
> "d:\app\Windows 2000 Resource Kit\Hlscan.exe"  /dir d:\app\git\bin
Hard Links Report for \\PIYO
Report Time: 04/19/2008 09:17:53
Scanned Areas: d:\app\git\bin\

Hard Links Found in d:\app\git\bin\ (recursive search):

ID: 0x1b000000030dfc - Hard Links Count: 87 - Missing: 0
  Creation Time: 01/24/2008 20:30:45
  Last Access Time: 04/19/2008 01:17:14
  d:\app\git\bin\git-add.exe
  d:\app\git\bin\git-annotate.exe
  d:\app\git\bin\git-apply.exe
  d:\app\git\bin\git-archive.exe
[82 similar entries omitted]
  d:\app\git\bin\git.exe

Summary:
        Files scanned: 251
        Physical files with more than one name: 1
        Hard links: 87

This tool confirms on my computer that the msysgit installation
function CreateHardLink works correctly.

References
[1] http://www.shell-shocked.org/article.php?id=284
[2] 
http://www.microsoft.com/downloads/details.aspx?FamilyID=289adee4-abb3-4e18-ab07-c77db8654979&displaylang=en

Best regards,
Clifford Caoile

Reply via email to