Hacker News new | ask | show | jobs
by theli0nheart 3559 days ago
It makes perfect sense. The code that GitHub displays when you hit the project page is from the main branch. It then follows that it makes the most sense to display the license that pertains specifically to the code which you see by default.

If one wants to checkout a non-main branch, ostensibly they can view the LICENSE file in that branch on their own.

1 comments

> It makes perfect sense.

It doesn't make any sense to show the license of the main branch when I just switched to a different one, no. If they want to take the lazy route, just stop showing licenses on anything but the main branch.

And incidentally they could use that new feature to remove the search bar when not on the main branch since that's not going to search the current branch, but it won't provide any warning or indication that you're not searching what you thought you were.

> The code that GitHub displays when you hit the project page is from the main branch.

You are aware that github has a branch switcher right there on the "project page" right?