Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement git project description (.git/description) #9957

Draft
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

moritztim
Copy link

@moritztim moritztim commented Nov 23, 2024

Purpose

There's a file for a project description, which is so far only properly implemented by gitweb, even tho GitHub Repositories feature a name and short description.
https://github.com/git/git/blob/04eaff62f286226f501dd21f069e0e257aee11a6/gitweb/gitweb.perl#L2951-L2954
More information/usages:
https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain
https://stackoverflow.com/questions/6866838/what-should-be-in-the-git-description-file
https://github.com/stephenh/git-central/blob/080aad76176bda0daef478cc1b6cd8fcbfc08112/server/post-receive-email#L453

https://lists.gnu.org/archive/html/savannah-hackers/2009-03/msg00051.html

Tasks

  • ProjectDescription struct and related helpers
  • Git template retrieval
  • Project description retrieval, treating project description equal to template as empty
  • Port constraints from GitHub repositories (such as description length)
  • Read default values from description in repo create
  • Write values to description wherever appropriate
  • Tests

@moritztim moritztim changed the title Implement ProjectDescription Implement git project description (.git/description) Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant