author | Linus Torvalds <torvalds@g5.osdl.org> | |
Mon, 4 Jul 2005 23:35:13 +0000 (16:35 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Mon, 4 Jul 2005 23:35:13 +0000 (16:35 -0700) | ||
commit | 75bfc6c232689ae06aba6a7d4aa15ac2791d9a11 | |
tree | 5cbe1763905b2fa0ec6281c8b1003149a1eb72c0 | tree | snapshot |
parent | fb9040cc83540fff9d05c8056433a4aa05b8a7c2 | commit | diff |
Make git-fetch-pack actually do all the unpacking etc.
It returns the result SHA1 on stdout, so you can do
remote=$(git-fetch-pack host:dir branchname)
and it will unpack the objects and "remote" will be the SHA1 name of the
branch on the other side. You can then save that off, or merge it, or
whatever.
It returns the result SHA1 on stdout, so you can do
remote=$(git-fetch-pack host:dir branchname)
and it will unpack the objects and "remote" will be the SHA1 name of the
branch on the other side. You can then save that off, or merge it, or
whatever.
fetch-pack.c | diff | blob | history | |
upload-pack.c | diff | blob | history |