author | Linus Torvalds <torvalds@linux-foundation.org> | |
Tue, 10 Apr 2007 04:20:29 +0000 (21:20 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Apr 2007 20:50:43 +0000 (13:50 -0700) | ||
commit | f35a6d3bce79c2995bbf0a3bd9fcad29e54a8d3c | |
tree | fca31eb00aea9a6a82ff493090c2da81af761ccc | tree | snapshot |
parent | 8d9721c86b0169c282ad1c5528317eafeb7fb0f7 | commit | diff |
Teach core object handling functions about gitlinks
This teaches the really fundamental core SHA1 object handling routines
about gitlinks. We can compare trees with gitlinks in them (although we
can not actually generate patches for them yet - just raw git diffs),
and they show up as commits in "git ls-tree".
We also know to compare gitlinks as if they were directories (ie the
normal "sort as trees" rules apply).
[jc: amended a cut&paste error]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This teaches the really fundamental core SHA1 object handling routines
about gitlinks. We can compare trees with gitlinks in them (although we
can not actually generate patches for them yet - just raw git diffs),
and they show up as commits in "git ls-tree".
We also know to compare gitlinks as if they were directories (ie the
normal "sort as trees" rules apply).
[jc: amended a cut&paste error]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-ls-tree.c | diff | blob | history | |
cache-tree.c | diff | blob | history | |
read-cache.c | diff | blob | history | |
sha1_file.c | diff | blob | history |