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

Re: pull/merge --no-commit

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jun 7, 2007, 20:43 UTC
Message-ID
<20070607204333.GC14463@fieldses.org>
In-Reply-To
<46686B63.6080808@alcatel-lucent.com>
On Thu, Jun 07, 2007 at 04:32:35PM -0400, kurt_p_lloyd wrote:
Show 10 quoted lines
> One thing I was thinking might be useful would be a command to make
> (just) my repository unavailable for 'fetch' or 'pull' from others,
> temporarily.  And then a command to make it available again,
> after I finish things that could end up needing "database" surgery,
> like maybe something that could result in having to do a git reset.
> I was thinking maybe something like:
> 
>   $ git config maintenance true
>   .... do something that may end up needing "database" surgery
>   $ git config maintenance false
You could probably do that with file permissions, but...
> Just an idea.  Of course, if something like this already exists ....
> (I'd rather not shut down sshd, nor have to create a separate "public"
>  repository (for certain types of "projects" anyway).)

... why not? Having a separate public repository also allows you to do this and much more. And it should be cheap and easy--if you're worried about the space, clone with --shared or something.

--b.
Previous: kurt_p_lloydNext: Keith Duthie
Message 9 of 10 in “pull/merge --no-commit”
  1. kurt_p_lloydJun 7, 2007
  2. kurt_p_lloydJun 7, 2007
  3. Junio C HamanoJun 7, 2007
  4. kurt_p_lloydJun 7, 2007
  5. Junio C HamanoJun 7, 2007
  6. Kevin GreenJun 7, 2007
  7. Keith DuthieJun 7, 2007
  8. kurt_p_lloydJun 7, 2007
  9. J. Bruce FieldsJun 7, 2007
  10. Keith DuthieJun 7, 2007

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.