зеркало из https://github.com/microsoft/git.git
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:
Родитель
8da1977554
Коммит
13e4aa90ac
|
@ -14,7 +14,9 @@ static int handle_one_ref(const char *path, const unsigned char *sha1,
|
||||||
{
|
{
|
||||||
FILE *refs_file = cb_data;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче