Felipe Contreras <felipe.contreras@xxxxxxxxx> writes: > +--prune:: > + Remove remote branches that don't have a local counterpart. For example > + a remote branch `tmp` will be removed if a local branch with the same > + name doesn't exist any more. This also respects refspecs, e.g. > + `refs/heads/*:refs/tmp/*` would make sure that remote `refs/tmp/foo` > + will be removed if `refs/heads/foo` doesn't exist. I do not think it adds much useful information to mention `tmp` only once over what is already said by the first sentence. Also, the first sentence of the example does not make it clear that it is assuming a same-for-same mapping. Coming up with a precise technical description is easy, but it is hard to explain to the end user in easy terms, and I commend you for attempting to add an example in a short single sentence, though. Perhaps spelling out the underlying assumption the example makes is the best we could do here without going too technical. ... For example, if you are pushing all your local branches to update the local branches of the remote, `tmp` branch will be removed from the remote if you removed your `tmp` branch locally. If you are pushing all your local branches on your laptop to a repository on your desktop machine under `refs/remotes/laptop/` hierarchy to back them up, `refs/remotes/laptop/tmp` is removed from the remote if you no longer have the branch `tmp` on your laptop. Will queue with a slight fix-ups, including this bit: > diff --git a/remote.h b/remote.h > index b395598..341142c 100644 > --- a/remote.h > +++ b/remote.h > @@ -145,7 +145,8 @@ int branch_merge_matches(struct branch *, int n, const char *); > enum match_refs_flags { > MATCH_REFS_NONE = 0, > MATCH_REFS_ALL = (1 << 0), > - MATCH_REFS_MIRROR = (1 << 1) > + MATCH_REFS_MIRROR = (1 << 1), > + MATCH_REFS_PRUNE = (1 << 2), > }; Lose the ',' at the end, for the same reason why deleted line did not have one. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html