summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60646e9)
raw | patch | inline | side by side (parent: 60646e9)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 23 Jun 2005 01:49:43 +0000 (18:49 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 23 Jun 2005 01:49:43 +0000 (18:49 -0700) |
It's just a trivial wrapper, but it should make Jeff's kernel developer
guide to git look a bit less intimidating.
guide to git look a bit less intimidating.
Makefile | patch | blob | history | |
git-clone-script | [new file with mode: 0755] | patch | blob |
diff --git a/Makefile b/Makefile
index c041cc7f083fab779ddab088bae112c43ffaaa16..e3405dc3a7cb15b3ae9be6f035950038a81e2ff2 100644 (file)
--- a/Makefile
+++ b/Makefile
git-pull-script git-tag-script git-resolve-script git-whatchanged \
git-deltafy-script git-fetch-script git-status-script git-commit-script \
git-log-script git-shortlog git-cvsimport-script git-diff-script \
- git-reset-script git-add-script git-checkout-script gitk
+ git-reset-script git-add-script git-checkout-script git-clone-script \
+ gitk
PROG= git-update-cache git-diff-files git-init-db git-write-tree \
git-read-tree git-commit-tree git-cat-file git-fsck-cache \
diff --git a/git-clone-script b/git-clone-script
--- /dev/null
+++ b/git-clone-script
@@ -0,0 +1,7 @@
+#!/bin/sh
+repo="$1"
+dir="$2"
+mkdir $dir || exit 1
+cd $dir
+git-init-db
+git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )