git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Documentation (mainly user-manual) patches
@ 2007-05-18  3:37 J. Bruce Fields
  2007-05-18  3:39 ` [PATCH] user-manual: reorganize public git repo discussion J. Bruce Fields
  2007-05-18  4:56 ` Documentation (mainly user-manual) patches Petr Baudis
  0 siblings, 2 replies; 8+ messages in thread
From: J. Bruce Fields @ 2007-05-18  3:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Please pull from the maint branch at

	git://linux-nfs.org/~bfields/git.git maint

This is mainly revisions of the patches posted a few days ago, which
were uncontraversial, so I won't resend them.  (They did need more
proofreading than usual, though--thanks to everyone who helped!)

One final patch wasn't included before, so I'll follow up with that.

--b.

 Documentation/glossary.txt                       |  228 +++--
 Documentation/howto/dangling-objects.txt         |  109 --
 Documentation/howto/isolate-bugs-with-bisect.txt |   65 --
 Documentation/howto/make-dist.txt                |   52 -
 Documentation/howto/using-topic-branches.txt     |  296 ------
 Documentation/user-manual.txt                    | 1192 +++++++++++++++++-----
 6 files changed, 1046 insertions(+), 896 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] user-manual: reorganize public git repo discussion
  2007-05-18  3:37 Documentation (mainly user-manual) patches J. Bruce Fields
@ 2007-05-18  3:39 ` J. Bruce Fields
  2007-05-18  4:56 ` Documentation (mainly user-manual) patches Petr Baudis
  1 sibling, 0 replies; 8+ messages in thread
From: J. Bruce Fields @ 2007-05-18  3:39 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git


Helping a couple people set up public repos recently, I wanted to point
them at this piece of the user manual, but found it wasn't as helpful as
it could be:

	- It starts with a big explanation of why you'd want a public
	  repository, not necessary in their case since they already knew
	  why they wanted that.  So, separate that out.
	- It skimps on some of the git-daemon details, and puts the http
	  export information first.  Fix that.

Also group all the public repo subsections into a single section, and do
some miscellaneous related editing.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
---
 Documentation/user-manual.txt |   90 +++++++++++++++++++++++------------------
 1 files changed, 50 insertions(+), 40 deletions(-)

diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 735fea1..f4843f4 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1674,31 +1674,30 @@ The final result will be a series of commits, one for each patch in
 the original mailbox, with authorship and commit log message each
 taken from the message containing each patch.
 
-[[setting-up-a-public-repository]]
-Setting up a public repository
-------------------------------
+[[public-repositories]]
+Public git repositories
+-----------------------
 
-Another way to submit changes to a project is to simply tell the
-maintainer of that project to pull from your repository, exactly as
-you did in the section "<<getting-updates-with-git-pull, Getting
-updates with git pull>>".
+Another way to submit changes to a project is to tell the maintainer of
+that project to pull the changes from your repository using git-pull[1].
+In the section "<<getting-updates-with-git-pull, Getting updates with
+git pull>>" we described this as a way to get updates from the "main"
+repository, but it works just as well in the other direction.
 
-If you and maintainer both have accounts on the same machine, then
-then you can just pull changes from each other's repositories
-directly; note that all of the commands (gitlink:git-clone[1],
-git-fetch[1], git-pull[1], etc.) that accept a URL as an argument
-will also accept a local directory name; so, for example, you can
-use
+If you and the maintainer both have accounts on the same machine, then
+you can just pull changes from each other's repositories directly;
+commands that accepts repository URLs as arguments will also accept a
+local directory name:
 
 -------------------------------------------------
 $ git clone /path/to/repository
 $ git pull /path/to/other/repository
 -------------------------------------------------
 
-If this sort of setup is inconvenient or impossible, another (more
-common) option is to set up a public repository on a public server.
-This also allows you to cleanly separate private work in progress
-from publicly visible work.
+However, the more common way to do this is to maintain a separate public
+repository (usually on a different host) for others to pull changes
+from.  This is usually more convenient, and allows you to cleanly
+separate private work in progress from publicly visible work.
 
 You will continue to do your day-to-day work in your personal
 repository, but periodically "push" changes from your personal
@@ -1717,32 +1716,52 @@ like this:
         |               they push             V
   their public repo <------------------- their repo
 
-Now, assume your personal repository is in the directory ~/proj.  We
-first create a new clone of the repository:
+[[setting-up-a-public-repository]]
+Setting up a public repository
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Assume your personal repository is in the directory ~/proj.  We
+first create a new clone of the repository and tell git-daemon that it
+is meant to be public:
 
 -------------------------------------------------
 $ git clone --bare ~/proj proj.git
+$ touch proj.git/git-daemon-export-ok
 -------------------------------------------------
 
 The resulting directory proj.git contains a "bare" git repository--it is
-just the contents of the ".git" directory, without a checked-out copy of
-a working directory.
+just the contents of the ".git" directory, without any files checked out
+around it.
 
 Next, copy proj.git to the server where you plan to host the
 public repository.  You can use scp, rsync, or whatever is most
 convenient.
 
-If somebody else maintains the public server, they may already have
-set up a git service for you, and you may skip to the section
+[[exporting-via-git]]
+Exporting a git repository via the git protocol
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This is the preferred method.
+
+If someone else administers the server, they should tell you what
+directory to put the repository in, and what git:// url it will appear
+at.  You can then skip to the section
 "<<pushing-changes-to-a-public-repository,Pushing changes to a public
 repository>>", below.
 
-Otherwise, the following sections explain how to export your newly
-created public repository:
+Otherwise, all you need to do is start gitlink:git-daemon[1]; it will
+listen on port 9418.  By default, it will allow access to any directory
+that looks like a git directory and contains the magic file
+git-daemon-export-ok.  Passing some directory paths as git-daemon
+arguments will further restrict the exports to those paths.
+
+You can also run git-daemon as an inetd service; see the
+gitlink:git-daemon[1] man page for details.  (See especially the
+examples section.)
 
 [[exporting-via-http]]
 Exporting a git repository via http
------------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 The git protocol gives better performance and reliability, but on a
 host with a web server set up, http exports may be simpler to set up.
@@ -1774,20 +1793,11 @@ link:howto/setup-git-server-over-http.txt[setup-git-server-over-http]
 for a slightly more sophisticated setup using WebDAV which also
 allows pushing over http.)
 
-[[exporting-via-git]]
-Exporting a git repository via the git protocol
------------------------------------------------
-
-This is the preferred method.
-
-For now, we refer you to the gitlink:git-daemon[1] man page for
-instructions.  (See especially the examples section.)
-
 [[pushing-changes-to-a-public-repository]]
 Pushing changes to a public repository
---------------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Note that the two techniques outline above (exporting via
+Note that the two techniques outlined above (exporting via
 <<exporting-via-http,http>> or <<exporting-via-git,git>>) allow other
 maintainers to fetch your latest changes, but they do not allow write
 access, which you will need to update the public repository with the
@@ -1839,7 +1849,7 @@ details.
 
 [[setting-up-a-shared-repository]]
 Setting up a shared repository
-------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Another way to collaborate is by using a model similar to that
 commonly used in CVS, where several developers with special rights
@@ -1848,8 +1858,8 @@ link:cvs-migration.txt[git for CVS users] for instructions on how to
 set this up.
 
 [[setting-up-gitweb]]
-Allow web browsing of a repository
-----------------------------------
+Allowing web browsing of a repository
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 The gitweb cgi script provides users an easy way to browse your
 project's files and history without having to install git; see the file
-- 
1.5.1.4.19.g69e2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-18  3:37 Documentation (mainly user-manual) patches J. Bruce Fields
  2007-05-18  3:39 ` [PATCH] user-manual: reorganize public git repo discussion J. Bruce Fields
@ 2007-05-18  4:56 ` Petr Baudis
  2007-05-18 13:43   ` J. Bruce Fields
  1 sibling, 1 reply; 8+ messages in thread
From: Petr Baudis @ 2007-05-18  4:56 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Junio C Hamano, git

  Hi,

On Fri, May 18, 2007 at 05:37:46AM CEST, J. Bruce Fields wrote:
> Please pull from the maint branch at
> 
> 	git://linux-nfs.org/~bfields/git.git maint
> 
> This is mainly revisions of the patches posted a few days ago, which
> were uncontraversial, so I won't resend them.  (They did need more
> proofreading than usual, though--thanks to everyone who helped!)
> 
> One final patch wasn't included before, so I'll follow up with that.

  BTW, there is this nice git-request-pull tool which will prepare this
mail for you and additionally include the list of commits included in
that repository, which is somewhat more friendly to the readers (I
myself wondered). ;-)

  Thanks,

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-18  4:56 ` Documentation (mainly user-manual) patches Petr Baudis
@ 2007-05-18 13:43   ` J. Bruce Fields
  2007-05-19  4:02     ` Shawn O. Pearce
  0 siblings, 1 reply; 8+ messages in thread
From: J. Bruce Fields @ 2007-05-18 13:43 UTC (permalink / raw)
  To: Petr Baudis; +Cc: Junio C Hamano, git

On Fri, May 18, 2007 at 06:56:35AM +0200, Petr Baudis wrote:
>   BTW, there is this nice git-request-pull tool which will prepare this
> mail for you and additionally include the list of commits included in
> that repository, which is somewhat more friendly to the readers (I
> myself wondered). ;-)

OK!  I'll start including the shortlog.  Appended, if anyone's still
curious about this one.--b.

J. Bruce Fields (10):
      user-manual: revise birdseye-view chapter
      glossary: expand and clarify some definitions, prune cross-references
      user-manual: move quick-start to an appendix
      Documentation: remove howto's now incorporated into manual
      user-manual: move howto/make-dist.txt into user manual
      user-manual: move howto/using-topic-branches into manual
      user-manual: add a "counting commits" example
      user-manual: introduce git
      user-manual: listing commits reachable from some refs not others
      user-manual: reorganize public git repo discussion

Johannes Schindelin (1):
      Add a birdview-on-the-source-code section to the user manual

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-18 13:43   ` J. Bruce Fields
@ 2007-05-19  4:02     ` Shawn O. Pearce
  2007-05-19  4:13       ` J. Bruce Fields
  0 siblings, 1 reply; 8+ messages in thread
From: Shawn O. Pearce @ 2007-05-19  4:02 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Petr Baudis, Junio C Hamano, git

"J. Bruce Fields" <bfields@fieldses.org> wrote:
> On Fri, May 18, 2007 at 06:56:35AM +0200, Petr Baudis wrote:
> >   BTW, there is this nice git-request-pull tool which will prepare this
> > mail for you and additionally include the list of commits included in
> > that repository, which is somewhat more friendly to the readers (I
> > myself wondered). ;-)
> 
> OK!  I'll start including the shortlog.  Appended, if anyone's still
> curious about this one.--b.

request-pull also does nice things like include the fetch URL, and
the branch name, and in a nice format that makes it very easy to
copy and paste into a "git pull" (or "git fetch") command line[*1*],
so its slightly more than just the shortlog.  ;-)


[*1*] By popular demand from Git's creator.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-19  4:02     ` Shawn O. Pearce
@ 2007-05-19  4:13       ` J. Bruce Fields
  2007-05-19  4:32         ` Shawn O. Pearce
  0 siblings, 1 reply; 8+ messages in thread
From: J. Bruce Fields @ 2007-05-19  4:13 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Petr Baudis, Junio C Hamano, git

On Sat, May 19, 2007 at 12:02:12AM -0400, Shawn O. Pearce wrote:
> request-pull also does nice things like include the fetch URL, and
> the branch name, and in a nice format that makes it very easy to
> copy and paste into a "git pull" (or "git fetch") command line[*1*],
> so its slightly more than just the shortlog.  ;-)

I know, but that's not hard to do by hand.  Which doesn't, of course,
mean I won't screw it up....

But, actually, I tried it just now and it only gave the url:

	The following changes since commit 164b19893ab5bc66b531a26480149a0dff082969:
	  Michael Hendricks (1):
		Document core.excludesfile for git-add

	are found in the git repository at:

		git://linux-nfs.org/~bfields/git.git

How's it supposed to figure out the branch name?  (And I'm not sure
about that "change since commit..." stuff--that seems like slight
overkill.)

--b.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-19  4:13       ` J. Bruce Fields
@ 2007-05-19  4:32         ` Shawn O. Pearce
  2007-05-19  5:19           ` J. Bruce Fields
  0 siblings, 1 reply; 8+ messages in thread
From: Shawn O. Pearce @ 2007-05-19  4:32 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Petr Baudis, Junio C Hamano, git

"J. Bruce Fields" <bfields@fieldses.org> wrote:
> But, actually, I tried it just now and it only gave the url:
> 
> 	The following changes since commit 164b19893ab5bc66b531a26480149a0dff082969:
> 	  Michael Hendricks (1):
> 		Document core.excludesfile for git-add
> 
> 	are found in the git repository at:
> 
> 		git://linux-nfs.org/~bfields/git.git
> 
> How's it supposed to figure out the branch name?

It connects to the remote URL, lists the refs found there, and
finds any that has the commit you passed in as the 3rd argument
(defaults to HEAD).  If none match it prints ..BRANCH.NOT.VERIFIED..
as the branch name, to signal no branch points at the given commit,
which means it cannot be (easily) pulled.

Not getting that means you have too old of a Git to have my branch
improvements.  It was in ff06c743dc, which is in master and hence
should be in 1.5.2 final.

> (And I'm not sure
> about that "change since commit..." stuff--that seems like slight
> overkill.)

Yea, it can be a little overkill sometimes.  But the maintainer
knows where you started from.  If that commit is horribly old he
might wonder what is going on.  ;-)

-- 
Shawn.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Documentation (mainly user-manual) patches
  2007-05-19  4:32         ` Shawn O. Pearce
@ 2007-05-19  5:19           ` J. Bruce Fields
  0 siblings, 0 replies; 8+ messages in thread
From: J. Bruce Fields @ 2007-05-19  5:19 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Petr Baudis, Junio C Hamano, git

On Sat, May 19, 2007 at 12:32:34AM -0400, Shawn O. Pearce wrote:
> It connects to the remote URL, lists the refs found there, and
> finds any that has the commit you passed in as the 3rd argument
> (defaults to HEAD).  If none match it prints ..BRANCH.NOT.VERIFIED..
> as the branch name, to signal no branch points at the given commit,
> which means it cannot be (easily) pulled.
> 
> Not getting that means you have too old of a Git to have my branch
> improvements.  It was in ff06c743dc, which is in master and hence
> should be in 1.5.2 final.

OK, that's very nifty.

> > (And I'm not sure
> > about that "change since commit..." stuff--that seems like slight
> > overkill.)
> 
> Yea, it can be a little overkill sometimes.  But the maintainer
> knows where you started from.  If that commit is horribly old he
> might wonder what is going on.  ;-)

Is that really helpful in practice?  Well, what would I know.

--b.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-19  5:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18  3:37 Documentation (mainly user-manual) patches J. Bruce Fields
2007-05-18  3:39 ` [PATCH] user-manual: reorganize public git repo discussion J. Bruce Fields
2007-05-18  4:56 ` Documentation (mainly user-manual) patches Petr Baudis
2007-05-18 13:43   ` J. Bruce Fields
2007-05-19  4:02     ` Shawn O. Pearce
2007-05-19  4:13       ` J. Bruce Fields
2007-05-19  4:32         ` Shawn O. Pearce
2007-05-19  5:19           ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).