From 459ee227dd14da3bdd2073c8a31b5056d0a85e8c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 21 Sep 2006 08:13:28 +0000 Subject: [PATCH] Autogenerated HTML docs for v1.4.2.1-g199a9 --- config.txt | 7 +++++++ git-init-db.html | 5 ++++- git-init-db.txt | 4 ++++ git-receive-pack.html | 4 +++- git-receive-pack.txt | 2 ++ git-repo-config.html | 13 ++++++++++++- 6 files changed, 32 insertions(+), 3 deletions(-) diff --git a/config.txt b/config.txt index 844cae4cf..bb2fbc324 100644 --- a/config.txt +++ b/config.txt @@ -267,3 +267,10 @@ whatchanged.difftree:: imap:: The configuration variables in the 'imap' section are described in gitlink:git-imap-send[1]. + +receive.denyNonFastforwads:: + If set to true, git-receive-pack will deny a ref update which is + not a fast forward. Use this to prevent such an update via a push, + even if that push is forced. This configuration variable is + set when initializing a shared repository. + diff --git a/git-init-db.html b/git-init-db.html index 270a30b16..e1d963a39 100644 --- a/git-init-db.html +++ b/git-init-db.html @@ -323,6 +323,9 @@ is given:

all (or world or everybody): Same as group, but make the repository readable by all users.

+

By default, the configuration flag receive.denyNonFastforward is enabled +in shared repositories, so that you cannot force a non fast-forwarding push +into it.

@@ -386,7 +389,7 @@ add all existing file to the index diff --git a/git-init-db.txt b/git-init-db.txt index 63cd5dab3..ca7d09dc0 100644 --- a/git-init-db.txt +++ b/git-init-db.txt @@ -48,6 +48,10 @@ is given: - 'all' (or 'world' or 'everybody'): Same as 'group', but make the repository readable by all users. +By default, the configuration flag receive.denyNonFastforward is enabled +in shared repositories, so that you cannot force a non fast-forwarding push +into it. + -- diff --git a/git-receive-pack.html b/git-receive-pack.html index c4060b21a..7953794c3 100644 --- a/git-receive-pack.html +++ b/git-receive-pack.html @@ -333,6 +333,8 @@ exec git-update-server-info

There are other real-world examples of using update and post-update hooks found in the Documentation/howto directory.

+

git-receive-pack honours the receive.denyNonFastforwards flag, which +tells it if updates to a ref should be denied if they are not fast-forwards.

OPTIONS

@@ -365,7 +367,7 @@ post-update hooks found in the Documentation/howto directory.

diff --git a/git-receive-pack.txt b/git-receive-pack.txt index f9457d45e..0dfadc2a3 100644 --- a/git-receive-pack.txt +++ b/git-receive-pack.txt @@ -73,6 +73,8 @@ packed and is served via a dumb transport. There are other real-world examples of using update and post-update hooks found in the Documentation/howto directory. +git-receive-pack honours the receive.denyNonFastforwards flag, which +tells it if updates to a ref should be denied if they are not fast-forwards. OPTIONS ------- diff --git a/git-repo-config.html b/git-repo-config.html index 395f511d3..2cb8c4bee 100644 --- a/git-repo-config.html +++ b/git-repo-config.html @@ -980,6 +980,17 @@ imap in git-imap-send(1).

+
+receive.denyNonFastforwads +
+
+

+ If set to true, git-receive-pack will deny a ref update which is + not a fast forward. Use this to prevent such an update via a push, + even if that push is forced. This configuration variable is + set when initializing a shared repository. +

+

Author

@@ -996,7 +1007,7 @@ imap -- 2.26.2