-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: Added Merge command #1540
feat: Added Merge command #1540
Conversation
src/commands/merge.ts
Outdated
|
||
async merge(repository: Repository, branch: IBranchItem) { | ||
let reintegrate = false; | ||
if (repository.currentBranch == "trunk") { |
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.
This will not work for people that don't call their main branch trunk
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.
Line 9 in d7b26e6
export function getBranchName(folder: string): IBranchItem | undefined { |
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.
This might help
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.
Good point. Added a isTrunk function to branches, that uses the same logic as in getBranchName.
Handle different main branches that are not called trunk.
In other branches information about the error is always already outputed
fixes #618 |
@MrLalelu thanks for your work on this! |
# [2.15.0](v2.14.0...v2.15.0) (2021-11-08) ### Features * Added Merge command ([#1540](#1540)) ([87060b3](87060b3))
🎉 This PR is included in version 2.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
As I (and other #618) was looking for this feature for quite a while now, I just drafted it. I am not typescript, vscode & svn expert so am really happy for any improvement ideas.