0da9688f41
Summary: If a user sets `color.ui` or `color.diff` to `always` in their git configuration files, the output of `git diff` will contain some "color characters" as well as the diff. When you try to apply this diff with color characters with `git apply` you will get `fatal: unrecognized input`. I think this is the cause of issue #11543 Reproduce in git with: ``` mkdir git-test cd git-test/ git init echo "foo" > bar.txt git add bar.txt git commit -m "First" echo "foomobile" > bar.txt git add bar.txt git diff HEAD > new.patch --color=always git reset --hard HEAD git apply new.patch --check ``` Set `--color=never` or `--no-color` and the unrecognized input error should disappear and the patch be applied successfully. Closes https://github.com/facebook/react-native/pull/12211 Differential Revision: D4514132 fbshipit-source-id: 3622df6ece92794c8a175f0599f5a276d92e82e8 |
||
---|---|---|
.. | ||
README.md | ||
checks.js | ||
cli.js | ||
cliEntry.js | ||
index.js | ||
package.json | ||
yarn.js |
README.md
React Native Git Upgrade
This tool makes upgrading your apps to a new version of React Native easier than the stock react-native upgrade
command.
It uses Git under the hood to automatically resolve merge conflicts in project templates (native iOS and Android files, .flowconfig
etc.). These conflicts happen when a new React Native version introduces changes to those files and you have local changes in those files too, which is quite common.
Usage
See the Upgrading docs on the React Native website.
Basic usage:
$ npm install -g react-native-git-upgrade
$ cd MyReactNativeApp
$ react-native-git-upgrade