summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8da1977)
raw | patch | inline | side by side (parent: 8da1977)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 07:06:05 +0000 (00:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 07:06:50 +0000 (00:06 -0700) |
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>
is easy to do so.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-refs.c | patch | blob | history |
diff --git a/builtin-pack-refs.c b/builtin-pack-refs.c
index 98710893b04c1747635776eb4f126cc18c860e35..0fc8a555e7615a084e3b5ba43866f8ef9043320a 100644 (file)
--- a/builtin-pack-refs.c
+++ b/builtin-pack-refs.c
{
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;
}