@@ -2313,13 +2313,10 @@ receive.denyNonFastForwards::
2313
2313
set when initializing a shared repository.
2314
2314
2315
2315
receive.hideRefs::
2316
- String(s) `receive-pack` uses to decide which refs to omit
2317
- from its initial advertisement. Use more than one
2318
- definitions to specify multiple prefix strings. A ref that
2319
- are under the hierarchies listed on the value of this
2320
- variable is excluded, and is hidden when responding to `git
2321
- push`, and an attempt to update or delete a hidden ref by
2322
- `git push` is rejected.
2316
+ This variable is the same as `transfer.hideRefs`, but applies
2317
+ only to `receive-pack` (and so affects pushes, but not fetches).
2318
+ An attempt to update or delete a hidden ref by `git push` is
2319
+ rejected.
2323
2320
2324
2321
receive.updateServerInfo::
2325
2322
If set to true, git-receive-pack will run git-update-server-info
@@ -2607,9 +2604,18 @@ transfer.fsckObjects::
2607
2604
Defaults to false.
2608
2605
2609
2606
transfer.hideRefs::
2610
- This variable can be used to set both `receive.hideRefs`
2611
- and `uploadpack.hideRefs` at the same time to the same
2612
- values. See entries for these other variables.
2607
+ String(s) `receive-pack` and `upload-pack` use to decide which
2608
+ refs to omit from their initial advertisements. Use more than
2609
+ one definition to specify multiple prefix strings. A ref that is
2610
+ under the hierarchies listed in the value of this variable is
2611
+ excluded, and is hidden when responding to `git push` or `git
2612
+ fetch`. See `receive.hideRefs` and `uploadpack.hideRefs` for
2613
+ program-specific versions of this config.
2614
+ +
2615
+ You may also include a `!` in front of the ref name to negate the entry,
2616
+ explicitly exposing it, even if an earlier entry marked it as hidden.
2617
+ If you have multiple hideRefs values, later entries override earlier ones
2618
+ (and entries in more-specific config files override less-specific ones).
2613
2619
2614
2620
transfer.unpackLimit::
2615
2621
When `fetch.unpackLimit` or `receive.unpackLimit` are
@@ -2624,13 +2630,10 @@ uploadarchive.allowUnreachable::
2624
2630
`false`.
2625
2631
2626
2632
uploadpack.hideRefs::
2627
- String(s) `upload-pack` uses to decide which refs to omit
2628
- from its initial advertisement. Use more than one
2629
- definitions to specify multiple prefix strings. A ref that
2630
- are under the hierarchies listed on the value of this
2631
- variable is excluded, and is hidden from `git ls-remote`,
2632
- `git fetch`, etc. An attempt to fetch a hidden ref by `git
2633
- fetch` will fail. See also `uploadpack.allowTipSHA1InWant`.
2633
+ This variable is the same as `transfer.hideRefs`, but applies
2634
+ only to `upload-pack` (and so affects only fetches, not pushes).
2635
+ An attempt to fetch a hidden ref by `git fetch` will fail. See
2636
+ also `uploadpack.allowTipSHA1InWant`.
2634
2637
2635
2638
uploadpack.allowTipSHA1InWant::
2636
2639
When `uploadpack.hideRefs` is in effect, allow `upload-pack`
0 commit comments