List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/2] README: Spelling and formatting fixes
@ 2014-01-08 18:45 cgit
  2014-01-08 18:45 ` [PATCH 2/2] README: Update dependencies cgit
  0 siblings, 1 reply; 10+ messages in thread
From: cgit @ 2014-01-08 18:45 UTC (permalink / raw)


* Several small spelling and capitalization fixes.

* Use consistent and better-looking formatting that is compatible with
  AsciiDoc (and partly compatible with RST).

Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
---
 README | 82 +++++++++++++++++++++++++++++++++---------------------------------
 1 file changed, 41 insertions(+), 41 deletions(-)

diff --git a/README b/README
index 8e4ed53..0c35f96 100644
--- a/README
+++ b/README
@@ -1,86 +1,86 @@
+cgit - CGI for Git
+==================
 
-                       cgit - cgi for git
-
-
-This is an attempt to create a fast web interface for the git scm, using a
-builtin cache to decrease server io-pressure.
-
+This is an attempt to create a fast web interface for the Git SCM, using a
+built-in cache to decrease server I/O pressure.
 
 Installation
+------------
 
-Building cgit involves building a proper version of git. How to do this
+Building cgit involves building a proper version of Git. How to do this
 depends on how you obtained the cgit sources:
 
 a) If you're working in a cloned cgit repository, you first need to
-initialize and update the git submodule:
+initialize and update the Git submodule:
 
-  $ git submodule init     # register the git submodule in .git/config
-  $ $EDITOR .git/config    # if you want to specify a different url for git
-  $ git submodule update   # clone/fetch and checkout correct git version
+    $ git submodule init     # register the Git submodule in .git/config
+    $ $EDITOR .git/config    # if you want to specify a different url for git
+    $ git submodule update   # clone/fetch and checkout correct git version
 
 b) If you're building from a cgit tarball, you can download a proper git
 version like this:
 
-  $ make get-git
-
+    $ make get-git
 
 When either a) or b) has been performed, you can build and install cgit like
 this:
 
-  $ make
-  $ sudo make install
+    $ make
+    $ sudo make install
 
-This will install cgit.cgi and cgit.css into "/var/www/htdocs/cgit". You can
-configure this location (and a few other things) by providing a "cgit.conf"
+This will install `cgit.cgi` and `cgit.css` into `/var/www/htdocs/cgit`. You
+can configure this location (and a few other things) by providing a `cgit.conf`
 file (see the Makefile for details).
 
+Dependencies
+------------
 
-Dependencies:
-  -git 1.7.4
-  -zip lib
-  -crypto lib
-  -openssl lib
-
+* git 1.7.4
+* zip lib
+* crypto lib
+* openssl lib
 
 Apache configuration
+--------------------
 
-A new Directory-section must probably be added for cgit, possibly something
+A new `Directory` section must probably be added for cgit, possibly something
 like this:
 
-  <Directory "/var/www/htdocs/cgit/">
-      AllowOverride None
-      Options +ExecCGI
-      Order allow,deny
-      Allow from all
-  </Directory>
+    <Directory "/var/www/htdocs/cgit/">
+        AllowOverride None
+        Options +ExecCGI
+        Order allow,deny
+        Allow from all
+    </Directory>
 
 
 Runtime configuration
+---------------------
 
-The file /etc/cgitrc is read by cgit before handling a request. In addition
+The file `/etc/cgitrc` is read by cgit before handling a request. In addition
 to runtime parameters, this file may also contain a list of repositories
-displayed by cgit (see cgitrc.5.txt for further details).
-
+displayed by cgit (see `cgitrc.5.txt` for further details).
 
 The cache
+---------
 
-When cgit is invoked it looks for a cachefile matching the request and
-returns it to the client. If no such cachefile exist (or if it has expired),
-the content for the request is written into the proper cachefile before the
+When cgit is invoked it looks for a cache file matching the request and
+returns it to the client. If no such cache file exists (or if it has expired),
+the content for the request is written into the proper cache file before the
 file is returned.
 
-If the cachefile has expired but cgit is unable to obtain a lock for it, the
-stale cachefile is returned to the client. This is done to favour page
+If the cache file has expired but cgit is unable to obtain a lock for it, the
+stale cache file is returned to the client. This is done to favour page
 throughput over page freshness.
 
 The generated content contains the complete response to the client, including
-the http-headers "Modified" and "Expires".
-
+the HTTP headers `Modified` and `Expires`.
 
 Online presence
+---------------
 
 * The cgit homepage is hosted by cgit at <http://git.zx2c4.com/cgit/about/>
 
-* Patches, bugreports, discussions and support should go to the cgit
+* Patches, bug reports, discussions and support should go to the cgit
   mailing list: <cgit at lists.zx2c4.com>. To sign up, visit 
   <http://lists.zx2c4.com/mailman/listinfo/cgit>
-- 
1.8.5.2



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

* [PATCH 2/2] README: Update dependencies
  2014-01-08 18:45 [PATCH 1/2] README: Spelling and formatting fixes cgit
@ 2014-01-08 18:45 ` cgit
  2014-01-08 21:05   ` Jason
  0 siblings, 1 reply; 10+ messages in thread
From: cgit @ 2014-01-08 18:45 UTC (permalink / raw)


* Update Git version note to 1.8.5.
* Use proper upstream names of dependencies.

Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
---
 README | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README
index 0c35f96..ca6e35a 100644
--- a/README
+++ b/README
@@ -35,10 +35,10 @@ file (see the Makefile for details).
 Dependencies
 ------------
 
-* git 1.7.4
-* zip lib
-* crypto lib
-* openssl lib
+* Git 1.8.5
+* libzip
+* libcrypto (OpenSSL)
+* libssl (OpenSSL)
 
 Apache configuration
 --------------------
-- 
1.8.5.2



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

* [PATCH 2/2] README: Update dependencies
  2014-01-08 18:45 ` [PATCH 2/2] README: Update dependencies cgit
@ 2014-01-08 21:05   ` Jason
  2014-01-09  7:30     ` cgit
  0 siblings, 1 reply; 10+ messages in thread
From: Jason @ 2014-01-08 21:05 UTC (permalink / raw)


We don't exactly depend on git, since we more or less include [a
reference to] the version we like with it. Perhaps we should remove
this from the deps all together.

On Wed, Jan 8, 2014 at 7:45 PM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> * Update Git version note to 1.8.5.
> * Use proper upstream names of dependencies.
>
> Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
> ---
>  README | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/README b/README
> index 0c35f96..ca6e35a 100644
> --- a/README
> +++ b/README
> @@ -35,10 +35,10 @@ file (see the Makefile for details).
>  Dependencies
>  ------------
>
> -* git 1.7.4
> -* zip lib
> -* crypto lib
> -* openssl lib
> +* Git 1.8.5
> +* libzip
> +* libcrypto (OpenSSL)
> +* libssl (OpenSSL)
>


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

* [PATCH 2/2] README: Update dependencies
  2014-01-08 21:05   ` Jason
@ 2014-01-09  7:30     ` cgit
  2014-01-09 15:13       ` Jason
  0 siblings, 1 reply; 10+ messages in thread
From: cgit @ 2014-01-09  7:30 UTC (permalink / raw)


On Wed, 08 Jan 2014 at 22:05:37, Jason A. Donenfeld wrote:
> We don't exactly depend on git, since we more or less include [a
> reference to] the version we like with it. Perhaps we should remove
> this from the deps all together.

We depend on Git in the test suite. Maybe this should be changed to use
the binary from the Git submodule instead?

> 
> On Wed, Jan 8, 2014 at 7:45 PM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> > * Update Git version note to 1.8.5.
> > * Use proper upstream names of dependencies.
> >
> > Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
> > ---
> >  README | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/README b/README
> > index 0c35f96..ca6e35a 100644
> > --- a/README
> > +++ b/README
> > @@ -35,10 +35,10 @@ file (see the Makefile for details).
> >  Dependencies
> >  ------------
> >
> > -* git 1.7.4
> > -* zip lib
> > -* crypto lib
> > -* openssl lib
> > +* Git 1.8.5
> > +* libzip
> > +* libcrypto (OpenSSL)
> > +* libssl (OpenSSL)
> >


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

* [PATCH 2/2] README: Update dependencies
  2014-01-09  7:30     ` cgit
@ 2014-01-09 15:13       ` Jason
  2014-01-09 18:01         ` john
  2014-01-09 18:44         ` [PATCH v2] README: Fix dependencies cgit
  0 siblings, 2 replies; 10+ messages in thread
From: Jason @ 2014-01-09 15:13 UTC (permalink / raw)


On Thu, Jan 9, 2014 at 8:30 AM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> We depend on Git in the test suite. Maybe this should be changed to use
> the binary from the Git submodule instead?

I think we discussed the possibility of this a while ago with John.
This would make most sense to me, though we are using git's test
harness, and I'd like to avoid making invasive changes in that, if
possible.

In either case, I wouldn't consider the test case a hard dependency,
and so I'm okay with removing git from the dep list. Or changing it to
"Git 1.8.5 (included)" or similar.


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

* [PATCH 2/2] README: Update dependencies
  2014-01-09 15:13       ` Jason
@ 2014-01-09 18:01         ` john
  2014-01-09 19:26           ` cgit
  2014-01-09 18:44         ` [PATCH v2] README: Fix dependencies cgit
  1 sibling, 1 reply; 10+ messages in thread
From: john @ 2014-01-09 18:01 UTC (permalink / raw)


On Thu, Jan 09, 2014 at 04:13:08PM +0100, Jason A. Donenfeld wrote:
> On Thu, Jan 9, 2014 at 8:30 AM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> > We depend on Git in the test suite. Maybe this should be changed to use
> > the binary from the Git submodule instead?
> 
> I think we discussed the possibility of this a while ago with John.
> This would make most sense to me, though we are using git's test
> harness, and I'd like to avoid making invasive changes in that, if
> possible.

We do already build the Git tools when building the test target (as
opposed to just libgit.a when building the cgit binary), but I can't
remember why we do this...

It's probably simplest just to further tweak $PATH in tests/setup.sh so
it also prepends "$(pwd)/../../git/bin-wrappers".  That should cause us
to use the Git tools from the submodule without needing to do anything
else.

> In either case, I wouldn't consider the test case a hard dependency,
> and so I'm okay with removing git from the dep list. Or changing it to
> "Git 1.8.5 (included)" or similar.


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

* [PATCH v2] README: Fix dependencies
  2014-01-09 15:13       ` Jason
  2014-01-09 18:01         ` john
@ 2014-01-09 18:44         ` cgit
  2014-01-09 18:55           ` Jason
  1 sibling, 1 reply; 10+ messages in thread
From: cgit @ 2014-01-09 18:44 UTC (permalink / raw)


* Remove the dependency on Git (which can be obtained automatically when
  building, using either the Git submodule or `make get-git`).

* Use proper upstream names of dependencies.

Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
---
 README | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/README b/README
index 0c35f96..e1d5262 100644
--- a/README
+++ b/README
@@ -35,10 +35,9 @@ file (see the Makefile for details).
 Dependencies
 ------------
 
-* git 1.7.4
-* zip lib
-* crypto lib
-* openssl lib
+* libzip
+* libcrypto (OpenSSL)
+* libssl (OpenSSL)
 
 Apache configuration
 --------------------
-- 
1.8.5.2



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

* [PATCH v2] README: Fix dependencies
  2014-01-09 18:44         ` [PATCH v2] README: Fix dependencies cgit
@ 2014-01-09 18:55           ` Jason
  0 siblings, 0 replies; 10+ messages in thread
From: Jason @ 2014-01-09 18:55 UTC (permalink / raw)


Merged.


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

* [PATCH 2/2] README: Update dependencies
  2014-01-09 18:01         ` john
@ 2014-01-09 19:26           ` cgit
  2014-01-09 20:10             ` john
  0 siblings, 1 reply; 10+ messages in thread
From: cgit @ 2014-01-09 19:26 UTC (permalink / raw)


On Thu, 09 Jan 2014 at 19:01:42, John Keeping wrote:
> On Thu, Jan 09, 2014 at 04:13:08PM +0100, Jason A. Donenfeld wrote:
> > On Thu, Jan 9, 2014 at 8:30 AM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> > > We depend on Git in the test suite. Maybe this should be changed to use
> > > the binary from the Git submodule instead?
> > 
> > I think we discussed the possibility of this a while ago with John.
> > This would make most sense to me, though we are using git's test
> > harness, and I'd like to avoid making invasive changes in that, if
> > possible.
> 
> We do already build the Git tools when building the test target (as
> opposed to just libgit.a when building the cgit binary), but I can't
> remember why we do this...
> 
> It's probably simplest just to further tweak $PATH in tests/setup.sh so
> it also prepends "$(pwd)/../../git/bin-wrappers".  That should cause us
> to use the Git tools from the submodule without needing to do anything
> else.

That sounds like a good idea to me. Do you want to prepare a patch?

> 
> > In either case, I wouldn't consider the test case a hard dependency,
> > and so I'm okay with removing git from the dep list. Or changing it to
> > "Git 1.8.5 (included)" or similar.


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

* [PATCH 2/2] README: Update dependencies
  2014-01-09 19:26           ` cgit
@ 2014-01-09 20:10             ` john
  0 siblings, 0 replies; 10+ messages in thread
From: john @ 2014-01-09 20:10 UTC (permalink / raw)


On Thu, Jan 09, 2014 at 08:26:24PM +0100, Lukas Fleischer wrote:
> On Thu, 09 Jan 2014 at 19:01:42, John Keeping wrote:
> > On Thu, Jan 09, 2014 at 04:13:08PM +0100, Jason A. Donenfeld wrote:
> > > On Thu, Jan 9, 2014 at 8:30 AM, Lukas Fleischer <cgit at cryptocrack.de> wrote:
> > > > We depend on Git in the test suite. Maybe this should be changed to use
> > > > the binary from the Git submodule instead?
> > > 
> > > I think we discussed the possibility of this a while ago with John.
> > > This would make most sense to me, though we are using git's test
> > > harness, and I'd like to avoid making invasive changes in that, if
> > > possible.
> > 
> > We do already build the Git tools when building the test target (as
> > opposed to just libgit.a when building the cgit binary), but I can't
> > remember why we do this...
> > 
> > It's probably simplest just to further tweak $PATH in tests/setup.sh so
> > it also prepends "$(pwd)/../../git/bin-wrappers".  That should cause us
> > to use the Git tools from the submodule without needing to do anything
> > else.
> 
> That sounds like a good idea to me. Do you want to prepare a patch?

Now that I've dug into this some more, it turns out that we're already
using the Git tools from the submodule!  The Git test framework already
sets up the path to use the tools from the Git tree, which explains why
the Makefile makes sure we build the Git CLI utilities.


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

end of thread, other threads:[~2014-01-09 20:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08 18:45 [PATCH 1/2] README: Spelling and formatting fixes cgit
2014-01-08 18:45 ` [PATCH 2/2] README: Update dependencies cgit
2014-01-08 21:05   ` Jason
2014-01-09  7:30     ` cgit
2014-01-09 15:13       ` Jason
2014-01-09 18:01         ` john
2014-01-09 19:26           ` cgit
2014-01-09 20:10             ` john
2014-01-09 18:44         ` [PATCH v2] README: Fix dependencies cgit
2014-01-09 18:55           ` Jason

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).