Hi. It's more like a git question less like a postgres question..
I executed the following commands

rm /home/jian/Downloads/001_psql_parse_only_test.patch
git checkout master
git branch --delete --force feature_to_review
git  checkout -b feature_to_review
patch -p1 --batch < /home/jian/Downloads/001_psql_parse_only.v1.patch
git commit -a -m "test"
git diff --patience master feature_to_review >
/home/jian/Downloads/001_psql_parse_only_test.patch
git diff --color-words --no-index
/home/jian/Downloads/001_psql_parse_only.v1.patch
 /home/jian/Downloads/001_psql_parse_only_test.patch

the last command should return nothing? The idea is to create a local
branch, patch the downloaded patch file, and commit the patch file.
Then try to use git diff to validate local branch = master + patch file by
comparing the download patch file with the output of (git diff branchA
branchB).
Generally what's the correct commands (workflow to patch the patch file)
and how can i validate the local branch only has the patched file changes
and no others.


also in this link: https://wiki.postgresql.org/wiki/Working_with_Git

> See the documentation and tutorials at http://git.or.cz/ for a more
> detailed Git introduction. For a more detailed lesson, check out
> http://progit.org and maybe get a hardcopy to help support the site.
>
the first link not working, the second link, is not that related to git.

Reply via email to