Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Fix signature helper #45

Merged
merged 2 commits into from
Jan 9, 2021
Merged

Conversation

BladeMF
Copy link
Contributor

@BladeMF BladeMF commented Jan 4, 2021

@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 4, 2021

BTW, is this normal - because this branch is based on the latest master branch it shows my merges from updating from phpactor/completion?

@dantleech
Copy link
Contributor

Well, define "normal". you can avoid it with git rebase origin/master (assuming you did git merge origin/master or git pull.

you can "fix" it by git reset --hard origin/master git cherry-pick c714189. But like I say, it doesn't really matter as we squash to one commit anyway.

@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 4, 2021

Well, I use the interface here to update my master branch from your master branch using a pull request. Not sure how to rebase my master from your master.

@dantleech
Copy link
Contributor

dantleech commented Jan 4, 2021

You don't really need to worry about your master (or my master, the only one we care about is githubs master)

$ git fetch origin

fetches the "github" version of the code to your git repository as origin.

$ git rebase origin/master

will rebase your current branch on the "github" version of the code - it will reset your branch to the commit on origin/master and then replay your new commits on top of it - so that your commits are "based" on the latest commit from origin/master.

it may not work so well if you've already merged though - rebasing rewrites the history (your commits will have new IDs). but it just means that your code is "based" on the most recent commit of the branch you are merging to and you have a linear progression from from origin/master (the branch you're merging to).

@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 4, 2021

This doesn't make any sense - my repo is a fork, origin/master should be the master branch of my fork in github.

This article says how to configure another remote for my local branch. Then it says I need to do this. It says if I hadn't touched my master (which I wouldn't have, because I'd be using branches) it would just fast-forward mine and it will be completely in sync. Maybe I should do that.

I wonder if I can reset my master branch onto that "upstream" branch...

I am sorry about this, this is all new to me. I'll need a bit of help until I find my way.

@dantleech
Copy link
Contributor

dantleech commented Jan 4, 2021

Ah yes :) I'm so used to working on the main remote, you should indeed rebase on remote|upstream|whatever/master

rebase is better technically, as you won't get those Merge commits, but like I say it's not very important.

@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 4, 2021

This is how I reset, found it. I would guess if I don't touch my master there won't be merge commits - just a fast-fotwared.

@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 4, 2021

I'd rather have my master being in sync too in case I need to use it, is my other point.

@dantleech
Copy link
Contributor

dantleech commented Jan 4, 2021

yeah, i use git fetch git reset --hard in preference to git pull git merge etc. I only merge if there are other people using that branch as a base.

@BladeMF BladeMF force-pushed the fix-signature-helper branch from c714189 to 6f2a9ef Compare January 5, 2021 07:07
@BladeMF
Copy link
Contributor Author

BladeMF commented Jan 5, 2021

Done, reset it. Will reset the others later.

@dantleech
Copy link
Contributor

Yeah, absolutely not a problem :)

-- Add test for static method inside other function
@dantleech dantleech merged commit 8783b78 into phpactor:master Jan 9, 2021
@dantleech
Copy link
Contributor

Thanks, works great!

@BladeMF BladeMF deleted the fix-signature-helper branch January 9, 2021 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signature helper shows wrong signature sometimes
2 participants