List for cgit developers and users
 help / color / mirror / Atom feed
* Displaying latest commit message instead of description on repository list
@ 2014-07-31 14:35 njn2118
  2014-07-31 14:39 ` john
  2014-07-31 16:58 ` jamie.couture
  0 siblings, 2 replies; 3+ messages in thread
From: njn2118 @ 2014-07-31 14:35 UTC (permalink / raw)


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.

Does cgit have a mechanism to easily configure what I'm talking about,
or would this require new functionality?



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

* Displaying latest commit message instead of description on repository list
  2014-07-31 14:35 Displaying latest commit message instead of description on repository list njn2118
@ 2014-07-31 14:39 ` john
  2014-07-31 16:58 ` jamie.couture
  1 sibling, 0 replies; 3+ messages in thread
From: john @ 2014-07-31 14:39 UTC (permalink / raw)


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.
> 
> Does cgit have a mechanism to easily configure what I'm talking about,
> or would this require new functionality?

There is no functionality to do this in CGit, but there is nothing to
stop you adding a Git post-update hook to write the latest commit into
the description file whenever anyone pushes to the repository.


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

* Displaying latest commit message instead of description on repository list
  2014-07-31 14:35 Displaying latest commit message instead of description on repository list njn2118
  2014-07-31 14:39 ` john
@ 2014-07-31 16:58 ` jamie.couture
  1 sibling, 0 replies; 3+ messages in thread
From: jamie.couture @ 2014-07-31 16:58 UTC (permalink / raw)


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


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

end of thread, other threads:[~2014-07-31 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-31 14:35 Displaying latest commit message instead of description on repository list njn2118
2014-07-31 14:39 ` john
2014-07-31 16:58 ` jamie.couture

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