otac0n / WebGitNet

WebGit .NET is an ASP.NET MVC app that provides access to your git repositories over HTTP. It supports browsing in a web browser AND push / pull over Git's "Smart HTTP protocol".
zlib License
133 stars 62 forks source link

Add support for grouping repos in sub folders (feature request) #70

Open gregsohl opened 11 years ago

gregsohl commented 11 years ago

It would be useful to group multiple related repositories under a sub folder. For example:

Project Repo 1
Project Repo 2
Utilities\
    Utility Repo 1
    Utility Repo 2 

The code does not appear to be too far from being able to support this. Would need some URL / routing semantics and enhancements to repo folder detection, along with drill down in the UI.

otac0n commented 11 years ago

Do you have a proposed URL structure for this, BTW?

gregsohl commented 11 years ago

I was thinking of inserting the folder between the Action and the Repo name.

ex. https://server/manage/subfolder/MyRepo.git https://server/browse/subfolder/MyRepo.git https://server/git/subfolder/MyRepo.git

I was thinking there were one or two routes that didn't fall well into this and would need adjustment. For example the graph controller uses: "browse/{repo}/graph". Would it make sense to change it to "graph/{repo}"? Search and syndication are the same way.

Minor changes, but breaking of people existing URLs.

otac0n commented 11 years ago

Wouldn't that make the URLs ambiguous, potentially? On May 30, 2013 8:16 AM, "Greg Sohl" notifications@github.com wrote:

I was thinking of inserting the folder between the Action and the Repo name.

ex. https://server/manage/subfolder/MyRepo.git https://server/browse/subfolder/MyRepo.git https://server/git/subfolder/MyRepo.git

I was thinking there were one or two routes that didn't fall well into this and would need adjustment. For example the graph controller uses: "browse/{repo}/graph". Would it make sense to change it to "graph/{repo}"? Search and syndication are the same way.

Minor changes, but breaking of people existing URLs.

— Reply to this email directly or view it on GitHubhttps://github.com/otac0n/WebGitNet/issues/70#issuecomment-18687019 .

topcats commented 9 years ago

Yes please I also use subfolders for Repo and this would be very helpful