-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Branch description #22639
Comments
Branch descriptions are stored locally in git config and can not be pushed to remote thus unless git client implements this feature there is not much we can do |
Thanks, asked on git-devel IRC and will report back. |
could the README.md be used for this since it is rendered in the |
I don't think that's a good idea. |
If #22743 merged, we can add a column in database to store the description. |
Related #14180 Related #25233 Related #22639 Close #19786 Related #12763 This PR will change all the branches retrieve method from reading git data to read database to reduce git read operations. - [x] Sync git branches information into database when push git data - [x] Create a new table `Branch`, merge some columns of `DeletedBranch` into `Branch` table and drop the table `DeletedBranch`. - [x] Read `Branch` table when visit `code` -> `branch` page - [x] Read `Branch` table when list branch names in `code` page dropdown - [x] Read `Branch` table when list git ref compare page - [x] Provide a button in admin page to manually sync all branches. - [x] Sync branches if repository is not empty but database branches are empty when visiting pages with branches list - [x] Use `commit_time desc` as the default FindBranch order by to keep consistent as before and deleted branches will be always at the end. --------- Co-authored-by: Jason Song <[email protected]>
Feature Description
Branches have name and content but no description that would describe what they are or should be. Being able to use
git branch --edit-description
on remote and display back on Gitea on e.g/user_name/repository_name/src/branch/branch_name
or/user_name/repository_name/branches
would be quite useful for people browsing a repository.Screenshots
No response
The text was updated successfully, but these errors were encountered: