[
https://issues.apache.org/jira/browse/CB-12975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083007#comment-16083007
]
ASF GitHub Bot commented on CB-12975:
-------------------------------------
Github user filmaj commented on the issue:
https://github.com/apache/cordova-plugin-inappbrowser/pull/225
Sure! No problem.
First you'd need to clone the repository down to your machine, giving you a
local copy to work with. You already have your own fork of the repository
(https://github.com/janpio/cordova-plugin-inappbrowser), so you can clone that
down:
```
> git clone https://github.com/janpio/cordova-plugin-inappbrowser.git
```
Move into the directory you just cloned down:
```
> cd cordova-plugin-inappbrowser
```
You'll want to ensure you have all of your various branches and the latest
pulled down from your fork. Do that with the `fetch` command, specifying
`origin` as what you want to fetch. When you cloned the repository with the
`git clone` command, `git` automatically sets the origin "location" (or
"remote" in gitspeak) to the URL you originally cloned from.
```
> git fetch origin
```
According to the top of this PR, your changes are located in a branch of
your fork called `patch-1`. So, let's checkout this branch:
```
> git checkout patch-1
```
Now you should see your changes when you go look at the README.
Cool. Next, we will add a remote representing the Apache repository, so
that you can pull down the latest changes from the Apache repository:
```
> git remote add apache
https://github.com/apache/cordova-plugin-inappbrowser.git
```
Then, like we did for your fork, you'll want to pull the latest changes
from the Apache remote:
```
> git fetch apache
```
OK, we're getting closer. Rebasing essentially "synchronizes" changes
between two different branches of code. So, we'll want to have your `patch-1`
branch available, as well as the `master` branch _from the Apache remote_. This
is a little tricky, but I can guide you through it:
```
> git checkout -b apache-master remotes/apache/master
```
The above is saying, checkout a _new_ branch called `apache-master` (`-b
apache-master`), and have this branch _track_ the `master` branch from the
`apache` remote. Hope that makes sense and you are following along.
OK, almost there. Next we need to go back to your `patch-1` branch to begin
the rebase:
```
> git checkout patch-1
```
Finally, we initiate the rebase between your `patch-1` branch and the
apache `master` branch like this:
```
> git rebase -i apache-master
```
This will bring up an interactive console / text editor where you should be
shown a chronologically ordered list of your commits. Any line that starts with
a `#` is a comment and can be ignored - but read through them as it gives you
instructions on how to do rebasing. The other lines represent your individual
commits, and the first word in each line represents how you want to modify the
commits. What you will want to do is "squash" your last commit by changing the
first word in front of that commit to "squash". Then save and exit the text
editor. You will be presented with one more screen in a new text editing
window. This last screen will give you a chance to modify the commit message
for your new two-commits-squashed-into-one-commit reality. This is where I
would love if you would be able to prefix your commit message with "CB-12975" :)
I highly suggest reading thess article about rebasing "interactively":
- http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
-
https://robots.thoughtbot.com/git-interactive-rebase-squash-amend-rewriting-history#interactive-rebase
Good luck! If you have any more questions, just ping me.
> Resort cordova.InAppBrowser.open `options` for better developer experience
> --------------------------------------------------------------------------
>
> Key: CB-12975
> URL: https://issues.apache.org/jira/browse/CB-12975
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-docs, cordova-plugin-inappbrowser
> Reporter: Jan Piotrowski
> Assignee: Filip Maj
> Priority: Minor
>
> Right now the list of `options` for `cordova.InAppBrowser.open` on
> https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/
> for the three platforms with additional options is quite random. As a user
> it is quite simple to misunderstand the wording and list as e.g. `hidden`only
> being available for Android (first item in only the Android list, there
> "Android only" directly over the line.
> It would be great to resort them in a way, that it is easier to find out
> which of the options are available on all (or multiple) of the 3 platforms
> with additional options. Also the "only" could be reworded to be less
> "exclusive".
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]