pack-refs: do not pack symbolic refs.

Now we can tell which one is symbolic and which one is not, it
is easy to do so.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2006-09-21 00:06:05 -07:00
parent 8da1977554
commit 13e4aa90ac

View file

@ -14,7 +14,9 @@ static int handle_one_ref(const char *path, const unsigned char *sha1,
{
FILE *refs_file = cb_data;
fprintf(refs_file, "%s %s\n", sha1_to_hex(sha1), path);
/* Do not pack the symbolic refs */
if (!(flags & REF_ISSYMREF))
fprintf(refs_file, "%s %s\n", sha1_to_hex(sha1), path);
return 0;
}