Re: [PATCH v2 3/4] Add support for matching full refs in hideRefs

2015-11-04 Thread Junio C Hamano
Junio C Hamano writes: > The semantics of "hideRefs" used to be that "refs can be hidden from > ls-remote" (i.e. prevents fetching, avoids contaminating "--mirror") > and "refs can be hidden from 'push'", but the objects being known > tips of histories that are complete, they still participate in

Re: [PATCH v2 3/4] Add support for matching full refs in hideRefs

2015-11-03 Thread Junio C Hamano
Lukas Fleischer writes: > static void show_ref(const char *path, const unsigned char *sha1) > { > - if (ref_is_hidden(path)) > - return; > - > if (sent_capabilities) { > packet_write(1, "%s %s\n", sha1_to_hex(sha1), path); > } else { > @@ -219,9 +216,14

[PATCH v2 3/4] Add support for matching full refs in hideRefs

2015-11-03 Thread Lukas Fleischer
In addition to matching stripped refs, one can now add hideRefs patterns that the full (unstripped) ref is matched against. To distinguish between stripped and full matches, those new patterns must be prefixed with a circumflex (^). This commit also removes support for the undocumented and uninten