# [PATCH 1/2] Documentation: remove --prune from pack-refs examples

3 messages from 2013-07-18 to 2013-07-18. Participants: Jonathon Mah, Junio C Hamano.
Thread: https://gitlist.dev/t/34462

## Jonathon Mah, 2013-07-18 07:11

Subject: [PATCH 1/2] Documentation: remove --prune from pack-refs examples
Message-ID: <19D1767A-4C36-4A89-A9BB-9FED33289CD9@JonathonMah.com>
URL: https://gitlist.dev/e/19D1767A-4C36-4A89-A9BB-9FED33289CD9%40JonathonMah.com

```
The option has been the default for a while, and doesn't otherwise
appear in the page.
---
 Documentation/git-pack-refs.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-pack-refs.txt b/Documentation/git-pack-refs.txt
index f131677..154081f 100644
--- a/Documentation/git-pack-refs.txt
+++ b/Documentation/git-pack-refs.txt
@@ -33,8 +33,8 @@ Subsequent updates to branches always create new files under
 `$GIT_DIR/refs` directory hierarchy.
 
 A recommended practice to deal with a repository with too many
-refs is to pack its refs with `--all --prune` once, and
-occasionally run `git pack-refs --prune`.  Tags are by
+refs is to pack its refs with `--all` once, and
+occasionally run `git pack-refs`.  Tags are by
 definition stationary and are not expected to change.  Branch
 heads will be packed with the initial `pack-refs --all`, but
 only the currently active branch heads will become unpacked,
-- 
1.8.3.3.754.g9c3c367




Jonathon Mah
me@JonathonMah.com

```

## Jonathon Mah, 2013-07-18 07:12

Subject: [PATCH 2/2] Documentation: fix git-prune example usage
Message-ID: <E676323F-CEDD-4072-B4FF-737143354401@JonathonMah.com>
URL: https://gitlist.dev/e/E676323F-CEDD-4072-B4FF-737143354401%40JonathonMah.com
In-Reply-To: <19D1767A-4C36-4A89-A9BB-9FED33289CD9@JonathonMah.com>

```
---
 Documentation/git-prune.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt
index 80d01b0..bf82410 100644
--- a/Documentation/git-prune.txt
+++ b/Documentation/git-prune.txt
@@ -59,7 +59,7 @@ borrows from your repository via its
 `.git/objects/info/alternates`:
 
 ------------
-$ git prune $(cd ../another && $(git rev-parse --all))
+$ git prune $(cd ../another && git rev-parse --all)
 ------------
 
 Notes
-- 
1.8.3.3.754.g9c3c367



Jonathon Mah
me@JonathonMah.com

```

## Junio C Hamano, 2013-07-18 17:55

Subject: Re: [PATCH 2/2] Documentation: fix git-prune example usage
Message-ID: <7vr4ev3g8g.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vr4ev3g8g.fsf%40alter.siamese.dyndns.org
In-Reply-To: <E676323F-CEDD-4072-B4FF-737143354401@JonathonMah.com>

```
Jonathon Mah <me@JonathonMah.com> writes:

> ---
>  Documentation/git-prune.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks.  Can we have your sign-off?

>
> diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt
> index 80d01b0..bf82410 100644
> --- a/Documentation/git-prune.txt
> +++ b/Documentation/git-prune.txt
> @@ -59,7 +59,7 @@ borrows from your repository via its
>  `.git/objects/info/alternates`:
>  
>  ------------
> -$ git prune $(cd ../another && $(git rev-parse --all))
> +$ git prune $(cd ../another && git rev-parse --all)
>  ------------
>  
>  Notes

```
