List for cgit developers and users
 help / color / mirror / Atom feed
From: jamie.couture at gmail.com (Jamie Couture)
Subject: Displaying latest commit message instead of description on repository list
Date: Thu, 31 Jul 2014 12:58:44 -0400	[thread overview]
Message-ID: <20140731165844.GB23653@neptune> (raw)
In-Reply-To: <877g2tfvfj.fsf@columbia.edu>

On Thu, Jul 31, 2014 at 10:35:12AM -0400, Nik Nyby wrote:
> I have cgit set up with my list of a bunch of different projects, and
> none of those repos have a very descriptive "description" file. I
> thought it would be nice to display each repository's latest commit line
> instead of "Unnamed repository; edit this file 'description' to name the
> repository." in the Description column of this table.
> 

What is your setup like?  How are you listing the projects?


I normally use gitolite, which is great for managing stuff like
that:

repo project-a
    config gitweb.owner         = "A U Thor author at example.com"
    config gitweb.description   = "My project"


However, assuming you're using gitolite and you allow user created
repositories, or wild repositories [1], you would need to have some
external script.  Perhaps something that will map known repo names
to a list of descriptions.  It could conceivably be run with some
POST_CREATE trigger [2].


[1] http://gitolite.com/gitolite/wild.html
[2] http://gitolite.com/gitolite/triggers.html


      parent reply	other threads:[~2014-07-31 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31 14:35 njn2118
2014-07-31 14:39 ` john
2014-07-31 16:58 ` jamie.couture [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140731165844.GB23653@neptune \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).