Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe upstreaming changes #166

Closed
ben-edna opened this issue May 28, 2021 · 1 comment
Closed

Describe upstreaming changes #166

ben-edna opened this issue May 28, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ben-edna
Copy link
Contributor

ben-edna commented May 28, 2021

One of the design goals of DFetch is to allow local changes, but promote upstreaming changes.
However, it is currently unclear how to upstream a change.

Add documentation, for instance that you can use:

Git

Creating the patch

cd <path-to-parent-of-project>
git diff --relative --no-color<SHA-of-unchanged-project> <SHA-of-last-fix> > my_fixes.patch

Note that powershell will pipe into UTF-16 LE encoded file, make sure it is UTF-8 with:

git diff --no-color --relative <SHA-of-unchanged-project> <SHA-of-last-fix>  | out-file -encoding ASCII my_fixes.patch

Applying the patch

To apply it (note that patch file will have relative paths)

git apply  --directory <path-of-file-in-repo> my_fixes.patch 

SVN

Creating the patch

cd <path-to-parent-of-project>
svn diff -r <rev-of-unchanged-project>:<rev-of-last-fix> > my_fixes.patch

Applying the patch

To be investigated

After upstreaming

After your changes were accepted (or you have a branch in the upstream project you like).
You can update the project or the manifest:

dfetch check
@ben-edna ben-edna added the documentation Improvements or additions to documentation label May 28, 2021
@ben-edna
Copy link
Contributor Author

DFetch supports upstreaming changes through dfetch diff both for svn and git repositories. No need to further document this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant