git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Removing options from build

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 13, 2009, 21:56 UTC
Message-ID
<200901132256.40313.trast@student.ethz.ch>
In-Reply-To
<200901132253.15370.trast@student.ethz.ch>
Thomas Rast wrote:
Show 6 quoted lines
> R. Tyler Ballance wrote:
> > I'm wondering if somebody could point me in the right direction to
> > remove "--force" (safely) from the builtin-push.c
> 
> IMHO your update (or pre-receive) hook should just disallow
> non-fast-forward updates.
Actually there's even this config option:
       receive.denyNonFastForwards
           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.
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Thomas RastNext: R. Tyler Ballance
Message 3 of 12 in “Removing options from build”
  1. R. Tyler BallanceJan 13, 2009
  2. Thomas RastJan 13, 2009
  3. Thomas RastJan 13, 2009
  4. R. Tyler BallanceJan 13, 2009
  5. Björn SteinbrinkJan 13, 2009
  6. Boyd Stephen Smith Jr.Jan 13, 2009
  7. Daniel BarkalowJan 13, 2009
  8. Björn SteinbrinkJan 13, 2009
  9. Jakub NarebskiJan 13, 2009
  10. Boyd Stephen Smith Jr.Jan 13, 2009
  11. R. Tyler BallanceJan 13, 2009
  12. Boyd Stephen Smith Jr.Jan 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.