-
Notifications
You must be signed in to change notification settings - Fork 24
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: [MER-1493] show up to date info about branches in stack tree #96
Conversation
Current Aviator status
This PR was merged using Aviator. |
// Check if branch is up to date with the upstream branch. | ||
// This is doing `git diff <givenBranch> remotes/origin/<givenBranch>` | ||
func getUpstreamStatus(repo *git.Repo, branch meta.Branch) (string, error) { | ||
upstreamExists, err := repo.DoesRemoteBranchExist(branch.Name) |
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.
note that this only checks the local reference for if the upstream branch exists. also if the branch has already been merged and deleted, we will not display the not pushed
messaged.
discussed offline with @draftcode , I think this should be ok for now.
add the following info about each branch for
av stack tree
(will probably need some UI improvements)