Re: [howto] Kernel hacker's guide to git, updated

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [howto] Kernel hacker's guide to git, updated

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:07

Oliver Neukum [off-list ref] writes:
Am Donnerstag, 29. September 2005 21:34 schrieb Jon Loeliger:
quoted
On Thu, 2005-09-29 at 14:08, Oliver Neukum wrote:
quoted
Unfortunately, following the instructions to the letter produces this:
oliver@oenone:~/linux-2.6> git checkout
usage: read-tree (<sha> | -m <sha1> [<sha2> <sha3>])
Yeah.  See if you still have a .git/HEADS that symlinks
to a valid place or not...?
oliver@oenone:~/linux-2.6> ls -la .git/
insgesamt 14
drwxrwxr-x    6 oliver users  224 2005-09-29 21:06 .
drwxr-xr-x    3 oliver users   72 2005-09-29 20:45 ..
-rw-rw-r--    1 oliver users   19 2005-05-02 01:02 description
lrwxrwxrwx    1 oliver users   17 2005-09-29 21:06 HEAD -> refs/heads/master
-rw-------    1 oliver users   32 2005-09-29 21:06 index
I wonder what that 32-byte small file called 'index' is doing
there.  If this is the kernel tree, its index file should weigh
about 1.7MB if I recall correctly.

Re: [howto] Kernel hacker's guide to git, updated

From: Oliver Neukum <oliver@neukum.org>
Date: 2016-06-15 22:42:07

Am Freitag, 30. September 2005 09:37 schrieb Junio C Hamano:
Oliver Neukum [off-list ref] writes:
quoted
Am Donnerstag, 29. September 2005 21:34 schrieb Jon Loeliger:
quoted
On Thu, 2005-09-29 at 14:08, Oliver Neukum wrote:
quoted
Unfortunately, following the instructions to the letter produces this:
oliver@oenone:~/linux-2.6> git checkout
usage: read-tree (<sha> | -m <sha1> [<sha2> <sha3>])
Yeah.  See if you still have a .git/HEADS that symlinks
to a valid place or not...?
oliver@oenone:~/linux-2.6> ls -la .git/
insgesamt 14
drwxrwxr-x    6 oliver users  224 2005-09-29 21:06 .
drwxr-xr-x    3 oliver users   72 2005-09-29 20:45 ..
-rw-rw-r--    1 oliver users   19 2005-05-02 01:02 description
lrwxrwxrwx    1 oliver users   17 2005-09-29 21:06 HEAD -> refs/heads/master
-rw-------    1 oliver users   32 2005-09-29 21:06 index
I wonder what that 32-byte small file called 'index' is doing
there.  If this is the kernel tree, its index file should weigh
about 1.7MB if I recall correctly.
I have no idea, but the instructions as stated didn't work for me.
Can you replicate that?

	Regards
		Oliver

Re: [howto] Kernel hacker's guide to git, updated

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:07


On Fri, 30 Sep 2005, Junio C Hamano wrote:
I wonder what that 32-byte small file called 'index' is doing
there.  If this is the kernel tree, its index file should weigh
about 1.7MB if I recall correctly.
32 bytes is what you get for an empty index (it's a 12-byte header, 
followed by a 20-byte SHA1 of the contents).

In general, such an index file it should be 100% equivalent to not having 
an index file at all.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help