Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] cg-fetch will now retrieve commits related to tags if missing.

From: Martin Langhoff <hidden>
Date: 2016-06-15 22:42:09

On 10/20/05, Junio C Hamano [off-list ref] wrote:
You are saying:
        if "$tagid" is already commit then continue;
        if "$tagid" dereferences to a commit and if you have it
        then continue

If that is the case, then this might be more efficient.

        GIT_DIR=../.. git-rev-parse --verify "$tagid^0" >/dev/null 2>&1 && continue
Note however that git-rev-parse is lazy and won't check that the
commit is there. I have to call git-cat-file and check whether it
succeeds to know if we have the object.

cheers,


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