Skip to content

Conversation

mathieuleclaire
Copy link
Contributor

Added scaladget library. Hope it could help.

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Thanks for the contribution. Please change the commit subject to "Add scaladget library". "Update. index.md" is not very useful in a commit list (and the commit body does not show).

@mathieuleclaire mathieuleclaire changed the title Update index.md Add scaladget library Sep 3, 2015
@mathieuleclaire
Copy link
Contributor Author

Done !

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Ah, sorry... I meant the one in the commit itself. The GitHub PR title will only appear in the merge commit (but indeed, it needed changing too).

You can amend the commit (git commit --amend) and then force push (git push -f origin master).

Also (in the future), please avoid making PRs from your master branch (if you continue working on it, the PR changes, which is rarely what you want).

@mathieuleclaire
Copy link
Contributor Author

OK, I did it; everything was fine locally, but I don't see the propagation of my modification of the github page, so that I think my amend failed. I had to merge d4c0ad7 in between, peharps it is why it failed. Do you know how to fix it ?

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Yep... The merge messed things up.

Do the following: (warning: deletes all other changes to your working copy)

git reset --hard 7a36d3ee5c6ac6e1ced631ceea2e503948a0e1a0 git commit --amend # Change commit message in the editor git push -f origin master 

If any of the commands fail: Don't run what they say, tell me the error.

@mathieuleclaire
Copy link
Contributor Author

I tried this already and I got (and I still get) a "Everything up-to-date" after the push, meaning it has no effect.

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

That is very strange. Your origin/master (assuming it is configured to be on your GitHub repo) is still at 1cb845a.

Could you try:

git push -f origin 7a36d3ee5c6ac6e1ced631ceea2e503948a0e1a0:master 

Also, could you show me the output of git show and git log on your local WC?

Thanks

@mathieuleclaire
Copy link
Contributor Author

The command worked, but the commit on github still has the old title ... I tried to reset again and redo the amend and the git push -f origin 7a36d3e:master, but I got again the "Everything up-to-date" :(.

git show gives:

commit 9e4f310b93a8ee642ad5351107e5f48be30780bb Author: Mathieu <mathieu.leclaire@iscpif.fr> Date: Thu Sep 3 08:33:49 2015 +0200 Add scaladget library Added scaladget library diff --git a/index.md b/index.md index ac76271..c6d6eb9 100644 --- a/index.md +++ b/index.md @@ -84,6 +84,7 @@ and then "Create a Pull Request". * [threejs-facade](https://github.com/antonkulaga/threejs-facade): static types for [Three.js 3D library](https://threejs.org) * [codemirror-facade](https://github.com/antonkulaga/codemirror-facade): static types for [Codemirror code editor](http://codemirror.net) * [selectize-facade](https://github.com/antonkulaga/selectize-facade): static types for [Selectize](http://brianreavis.github.io/selectize.js/) +* [scaladget](https://github.com/mathieuleclaire/scaladget): static types for [D3.js](d3js.org), [Ace](http://ace.c9.io), [Tooltipster](http://iamceege.github.io/tooltipster/), [Bootstrap.js](http://getbootstrap.com/) (and an API for the latter) ### Testing frameworks

and git log

commit 9e4f310b93a8ee642ad5351107e5f48be30780bb Author: Mathieu <mathieu.leclaire@iscpif.fr> Date: Thu Sep 3 08:33:49 2015 +0200 Add scaladget library Added scaladget library

which seems to be good, but on github, I do not have the same title: https://github.com/mathieuleclaire/scala-js-website/commits/master.
Weird !

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Ah, OK. But now on GitHub, you have the old commit. Now do git push -f origin master again. (Or if it doesn't work: git push -f origin 9e4f310b93a8ee642ad5351107e5f48be30780bb:master).

@mathieuleclaire
Copy link
Contributor Author

doing this made me merge again with 7a36d3e. Are we in a github black hole :) !?

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

I don't understand why pushing merges anything... :( Does specifying the commit explicitly work?

@mathieuleclaire
Copy link
Contributor Author

what do you mean ?

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Does this work: git push -f origin 9e4f310b93a8ee642ad5351107e5f48be30780bb:master?

@mathieuleclaire
Copy link
Contributor Author

Yes ! Sorry, I didn't see that a new commit ID had been generated. Thanks for helping ! I will take care next time to comment properly my commit titles.

index.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

d3js.org is missing http://. This will not work correctly.

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

No worries :) This will give you good git training. (If you amend, the commit ID must change, it is the SHA1 of the commits contents).

So... Now you have the line "Add scaladget library" twice in the commit message. That is not really a big deal so I'd merge it anyways. But there is an issue in one of the links (I commented individually).

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

So while you are at it, you can also fix the commit message :)

@mathieuleclaire
Copy link
Contributor Author

How can you modify the commit itself ? I just succeeded in changing title and message but my new verison of index.md (with missing http) has not been taking into account. I just tried the same thing than before.

@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

You need to stage the changes (using git add). When you then amend, they will be put into the new commit.

It contains facades for D3.js, Bootstrap.js, Tooltipster.js and Ace.js
@mathieuleclaire
Copy link
Contributor Author

Done ! Thanks.

@sjrd
Copy link
Member

sjrd commented Sep 3, 2015

LGTM

sjrd added a commit that referenced this pull request Sep 3, 2015
@sjrd sjrd merged commit 524f667 into scala-js:master Sep 3, 2015
@gzm0
Copy link
Contributor

gzm0 commented Sep 3, 2015

Thanks for bearing with us on this one @mathieuleclaire

@mathieuleclaire
Copy link
Contributor Author

No worries, I didn't know the amend option; I know it very well now :) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants