scp(1) はhard linkを認識しないようだ
野良ビルドのGitのインストール先ディレクトリをそのまま別マシンに scp(1)
しちゃえ! と思ったら,hard linkで作られてる prefix/libexec/git-core/git-*
達,各 4.8 MB が全部それぞれコピーされてひどいことになった.以下は野良ビルドじゃなくてDebianでの結果だけど,
$ ls -i /usr/lib/git-core|ruby -ane 'BEGIN{$h=Hash.new{|h,k|[]}}; $h[$F[0].to_i]<<=$F[1]; END{$h.each{|e|p e}}' [268515, ["git-request-pull*"]] [268504, ["git-mergetool*"]] [268493, ["git-gui*"]] [268482, ["git-am*"]] [268521, ["git-svn*"]] [268510, ["git-rebase--interactive*"]] [268499, ["git-instaweb*"]] [268488, ["git-daemon*"]] [268516, ["git-sh-setup"]] [268505, ["git-mergetool--lib"]] [268494, ["git-gui--askpass*"]] [268483, ["git-bisect*"]] [268522, ["git-upload-pack*"]] [268511, ["git-relink*"]] [268500, ["git-lost-found*"]] [268489, ["git-difftool*"]] [268517, ["git-shell*"]] [268506, ["git-parse-remote"]] [268495, ["git-http-backend*"]] [268484, ["git-citool*"]] [268523, ["git-web--browse*"]] [268512, ["git-remote-ftp*", "git-remote-ftps*", "git-remote-http*", "git-remote-https*"]] [268501, ["git-merge-octopus*"]] [268490, ["git-difftool--helper*"]] [268518, ["git-show-index*"]] [268507, ["git-pull*"]] [268496, ["git-http-fetch*"]] [268485, ["git-cvsexportcommit*"]] [268524, ["git*", "git-add*", "git-annotate*", "git-apply*", "git-archive*", "git-bisect--helper*", "git-blame*", "git-branch*", "git-bundle*", "git-cat-file*", "git-check-attr*", "git-check-ref-format*", "git-checkout*", "git-checkout-index*", "git-cherry*", "git-cherry-pick*", "git-clean*", "git-clone*", "git-commit*", "git-commit-tree*", "git-config*", "git-count-objects*", "git-describe*", "git-diff*", "git-diff-files*", "git-diff-index*", "git-diff-tree*", "git-fast-export*", "git-fetch*", "git-fetch-pack*", "git-fmt-merge-msg*", "git-for-each-ref*", "git-format-patch*", "git-fsck*", "git-fsck-objects*", "git-gc*", "git-get-tar-commit-id*", "git-grep*", "git-hash-object*", "git-help*", "git-index-pack*", "git-init*", "git-init-db*", "git-log*", "git-ls-files*", "git-ls-remote*", "git-ls-tree*", "git-mailinfo*", "git-mailsplit*", "git-merge*", "git-merge-base*", "git-merge-file*", "git-merge-index*", "git-merge-ours*", "git-merge-recursive*", "git-merge-subtree*", "git-merge-tree*", "git-mktag*", "git-mktree*", "git-mv*", "git-name-rev*", "git-notes*", "git-pack-objects*", "git-pack-redundant*", "git-pack-refs*", "git-patch-id*", "git-peek-remote*", "git-prune*", "git-prune-packed*", "git-push*", "git-read-tree*", "git-receive-pack*", "git-reflog*", "git-remote*", "git-remote-ext*", "git-remote-fd*", "git-replace*", "git-repo-config*", "git-rerere*", "git-reset*", "git-rev-list*", "git-rev-parse*", "git-revert*", "git-rm*", "git-send-pack*", "git-shortlog*", "git-show*", "git-show-branch*", "git-show-ref*", "git-stage*", "git-status*", "git-stripspace*", "git-symbolic-ref*", "git-tag*", "git-tar-tree*", "git-unpack-file*", "git-unpack-objects*", "git-update-index*", "git-update-ref*", "git-update-server-info*", "git-upload-archive*", "git-var*", "git-verify-pack*", "git-verify-tag*", "git-whatchanged*", "git-write-tree*"]] [268513, ["git-remote-testgit*"]] [268502, ["git-merge-one-file*"]] [268491, ["git-fast-import*"]] [268519, ["git-stash*"]] [268508, ["git-quiltimport*"]] [268497, ["git-http-push*"]] [268486, ["git-cvsimport*"]] [268514, ["git-repack*"]] [268503, ["git-merge-resolve*"]] [268492, ["git-filter-branch*"]] [268481, ["git-add--interactive*"]] [268520, ["git-submodule*"]] [268509, ["git-rebase*"]] [268498, ["git-imap-send*"]] [268487, ["git-cvsserver*"]]
なんでsymbolic linkでなくhard linkなのかな? 実行速度に差がある?