-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Source branch reference should probably be user/repo
#20408
Comments
You're talking about changing the displayed string, not the way gitea parses these references (eg in compare page url), right? No opinion on changing the displayed string - you can also argue that copypasting this string into gitea's compare URL is a similar valid use case ;) |
Yes, only the displayed and copied syntax. To me at least when I work with git cli, I prefer |
ps: I prefer For command line .... there are 2 options now:
|
I would like to keep this because when I want to review a pull request, I want to pull it. I can copy it to my command line and remove the : in the middle. BTW: sorry to close this accidentally. |
Yes, same for me. |
As your local branch name? But how do you copy the remote address url? |
|
After #22909 , I guess the command line could also be copied directly now? Or show something more there? If the repo is a fork, the command line is also for the fork IIRC. |
Yes, that's also my habit to follow the command line hint. |
I actually don't scroll down so far, prefer to copy it from above and if I can use the simple |
I would agree with noerw:
I also copy the |
Hmm, maybe we need two copy buttons 😆, one for git and one for compare. |
I suggest we update the PR checkout suggestion to something like this (copied from
If the user is the PR author, simplify instructions to
Also I would move these instructions to a popup to top-right of the PR, also like the extension does: |
We close issues that need feedback from the author if there were no new comments for a month. 🍵 |
Can keep closed I guess. I currently fetch and check out branches exclusively with git cli, and there it prints the format that |
Feature Description
There seem to be various ways that systems refer to the source branch of a PR:
user/repo:branch
is used by giteauser:branch
is used by githubuser/branch
is used by gitlab and in git cli (if remote name is user name)I'd argue we should go with the format of
user/branch
, because it lends itself for copy-paste with git cli when remote name equals username, where one can dogit checkout -t user/branch
. Anyone agree?Screenshots
The text was updated successfully, but these errors were encountered: