From: Eric Sunshine Date: Fri, 09 Feb 2018 05:33:49 GMT Subject: Re: [PATCH v2 13/17] git remote doc: correct dangerous lies about what prune does Message-ID: In-Reply-To: <20180208161936.8196-14-avarab@gmail.com> On Thu, Feb 8, 2018 at 11:19 AM, Ævar Arnfjörð Bjarmason wrote: > The "git remote prune " command uses the same machinery as "git > fetch --prune", and shares all the same caveats, but its > documentation has suggested that it'll just "delete stale > remote-tracking branches under ". > > This isn't true, and hasn't been true since at least v1.8.5.6 (the > oldest version I could be bothered to test). > > E.g. if "refs/tags/*:refs/tags/*" is explicitly set in the refspec of > the remote it'll delete all local tags doesn't know about. Not worth a re-roll as this is only the commit message: s/remote/&,/ More below... > Instead, briefly give the reader just enough of a hint that this > option might constitute a shotgun aimed at their foot, and point them > to the new PRUNING section in the git-fetch documentation which > explains all the nuances of what this facility does. > [...] > Signed-off-by: Ævar Arnfjörð Bjarmason > --- > diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt > @@ -172,10 +172,14 @@ With `-n` option, the remote heads are not queried first with > -Deletes all stale remote-tracking branches under . > -These stale branches have already been removed from the remote repository > -referenced by , but are still locally available in > -"remotes/". > +Deletes stale references associated with . By default stale Nit: s/default/&,/ > +remote-tracking branches under , but depending on global > +configuration and the configuration of the remote we might even prune > +local tags that haven't been pushed there. This is a bit difficult to digest grammatically due to the phrase being incomplete. It could say either: By default, stale ... under _are deleted_, but depending... or: Deletes stale ... ; by default, stale...