Skip to content

Conversation

@caternuson
Copy link
Contributor

what it says

@ladyada
Copy link
Member

ladyada commented Oct 26, 2017

do you mind if we make some tweaks to the TSL2561 library to make it more memory-efficient? :)

@caternuson
Copy link
Contributor Author

not at all, but would like to know the where and how

@ladyada
Copy link
Member

ladyada commented Oct 26, 2017

ok ill open up issues /there/ with suggestions!

@tannewt tannewt self-requested a review November 1, 2017 17:45
@tannewt
Copy link
Member

tannewt commented Nov 1, 2017

Please rebase this. Other modules have been updated/added since this pull was requested.

@caternuson
Copy link
Contributor Author

caternuson commented Nov 2, 2017

OK. Trying to rebase. What am I doing wrong? Here's what I did:

make local copy of my branch:

git clone https://github.com/caternuson/Adafruit_CircuitPython_Bundle.git

add upstream remote:

cd Adafruit_CircuitPython_Bundle
git remote add upstream https://github.com/adafruit/Adafruit_CircuitPython_Bundle.git

fetch upstream:

git fetch upstream

try to rebase:

git rebase upstream/master

FAIL due to conflict in .gitmodule
fix with text editor - added content from both branches
commit changes:

git add .
git commit -m "resolved rebase conflict"

try to continue with rebase:

git rebase --continue

acts like there's nothing to do:

Applying: added driver for TSL2561
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.

When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".

@tannewt
Copy link
Member

tannewt commented Nov 2, 2017

git rebase --continue does the commit on your behalf so don't do it yourself.

@caternuson
Copy link
Contributor Author

caternuson commented Nov 2, 2017

That's what I did initially, but got this which made me think I needed to add/commit:

.gitmodules: needs merge
You must edit all merge conflicts and then
mark them as resolved using git add

@tannewt
Copy link
Member

tannewt commented Nov 2, 2017

You just need to add and then continue. No commit

@caternuson
Copy link
Contributor Author

caternuson commented Nov 2, 2017

Ohhhh. Add but don't commit. Got it. That worked. (that's wasn't obvious, and so programmed to commit after an add)

Secret sauce for future ref:

git clone https://github.com/caternuson/Adafruit_CircuitPython_Bundle.git
cd Adafruit_CircuitPython_Bundle
git remote add upstream https://github.com/adafruit/Adafruit_CircuitPython_Bundle.git
git fetch upstream
git rebase upstream/master

fix conflicts

git add .
git rebase --continue

@caternuson
Copy link
Contributor Author

OK. Now having issues pushing up changes:

git push origin master

To https://github.com/caternuson/Adafruit_CircuitPython_Bundle.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/caternuson/Adafruit_CircuitPython_Bundle.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

@tannewt
Copy link
Member

tannewt commented Nov 2, 2017

Use the --force or --force-with-lease to be nice.

@caternuson
Copy link
Contributor Author

caternuson commented Nov 2, 2017

Well, that worked. Why was that necessary?

Also - do I make a new PR from this rebased fork?

@tannewt
Copy link
Member

tannewt commented Nov 3, 2017

Force is necessary when you rebase because you aren't simply adding another commit. You are actually replacing some commits with others.

No need for a new PR. PRs are based on the branch which you just updated. :-)

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@tannewt tannewt merged commit c585c4d into adafruit:master Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants