-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Display file mode changes #23159
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
Closed
Closed
Display file mode changes #23159
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delvh
requested changes
Feb 26, 2023
wxiaoguang
reviewed
Apr 24, 2023
@@ -577,9 +579,19 @@ parsingLoop: | |||
break curFileLoop | |||
case strings.HasPrefix(line, "old mode ") || | |||
strings.HasPrefix(line, "new mode "): | |||
|
|||
if strings.HasPrefix(line, "old mode ") { | |||
curFile.OldMode = strings.ReplaceAll(line, "old mode ", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it should be TrimPrefix
and then TrimSpace
, because there is a line below strings.HasSuffix(line, " 160000\n")
silverwind
added a commit
that referenced
this pull request
May 29, 2023
This MR introduces the addition of file mode display support for both new file creation and file mode changes, following a similar approach as GitLab. GitLab:  Gitea:  Replaces: #23159 Closes: #23021 --------- Co-authored-by: silverwind <[email protected]> Co-authored-by: delvh <[email protected]> Co-authored-by: Giteabot <[email protected]>
Given that #24966 was merged, I think we can close this PR? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
lgtm/need 2
This PR needs two approvals by maintainers to be considered for merging.
outdated/backport/v1.19
This PR should be backported to Gitea 1.19
type/enhancement
An improvement of existing functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #23021