Browse Source

Merge branch 'jm/doc-ref-prune'

* jm/doc-ref-prune:
  Documentation: fix git-prune example usage
  Documentation: remove --prune from pack-refs examples
maint
Junio C Hamano 12 years ago
parent
commit
677f32c79f
  1. 4
      Documentation/git-pack-refs.txt
  2. 2
      Documentation/git-prune.txt

4
Documentation/git-pack-refs.txt

@ -33,8 +33,8 @@ Subsequent updates to branches always create new files under @@ -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,

2
Documentation/git-prune.txt

@ -59,7 +59,7 @@ borrows from your repository via its @@ -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

Loading…
Cancel
Save