-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add .diff and .patch support to compare #34433
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
base: main
Are you sure you want to change the base?
Conversation
Some things in my mind:
|
3acbb9f
to
bc79694
Compare
@@ -73,3 +73,14 @@ func (repo *Repository) GetTreePathLatestCommit(refName, treePath string) (*Comm | |||
} | |||
return repo.GetCommit(strings.TrimSpace(stdout)) | |||
} | |||
|
|||
// RevParse resolves a revision reference to other git-related objects | |||
func (repo *Repository) RevParse(ref, file string) (string, error) { |
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.
Where is it really used except the tests?
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.
Thanks ill either move it to test files or find a workaround
ref2IsBranch := gitrepo.IsBranchExist(ctx, ctx.Repo.Repository, infos[1]) | ||
ref2IsTag := gitrepo.IsTagExist(ctx, ctx.Repo.Repository, infos[1]) |
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.
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.
Thanks ill address that
Implements proposal #34410

