go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.63k stars 5.45k forks source link

Possibility to open repository with "custom" settings #21424

Open TimerWolf opened 2 years ago

TimerWolf commented 2 years ago

Feature Description

As the title says, it would be neat if it could be more customized what to share with the public and what to keep private.

In my case i have repository called "scripts" that contains scripts in different languages

it looks like this when i am logged in on my account

And lets say i would like to share only the "php" directory it would be neat if it was possible and if i set "php" as shared it shows as public with all its subdirs and all others only seen for me if i am logged in to my account.

Screenshots

No response

lunny commented 4 months ago

How about creating a submodule for php and in fact storing php on another public repository? Otherwise it's almost impossible to implement such a feature in a git ecosystem.