![]() |
2016-01-01
, 19:10
|
|
Posts: 6,453 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#1782
|
The Following 2 Users Say Thank You to pichlo For This Useful Post: | ||
![]() |
2016-01-01
, 19:23
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#1783
|
The Following User Says Thank You to coderus For This Useful Post: | ||
![]() |
2016-01-01
, 20:01
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1784
|
It took me a while to type this and coderus has beaten me but since I spent so much effort typing it I will post it anyway even though it probably does not tell you anything new.
I second coderus' suggestion to copy the whole tree. Regarding git diff, there are other options. Some visual diff utilities (sadly, most of them for Windows) can compare whole directories but only to the point of showing you which files have changed. You still have to descend to each file if you want to see the line by line differences and/or produce a diff file. I would say the easiest and most obvious solution for you would be to find which files have changed and then diff them one by one, concatenating the diffs in a single unified_diff.patch file.
Have a look at some other patches that modify more than one file to see what unified_diff.patch looks like in such situations. For example, Remorse Items Timeout controls or Return old pulley menu.
![]() |
2016-01-01
, 20:45
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#1785
|
![]() |
2016-01-01
, 20:46
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1786
|
![]() |
2016-01-01
, 20:50
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1787
|
What's difficult?... Save original file as filename.ext.orig, modify filename.ext and make diff
cd /path_to_filename
diff -u filename.ext.orig filename.ext > unified_diff.patch
ext = extension, qml, f.e.
![]() |
2016-01-01
, 20:51
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#1788
|
The Following User Says Thank You to coderus For This Useful Post: | ||
![]() |
2016-01-01
, 20:53
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#1789
|
![]() |
2016-01-01
, 21:06
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#1790
|
cd /usr/share/fonts
cp Sans.ttf Sans.ttf.orig
diff -u Sans.ttf.orig Sans.ttf > unified_diff.patch
--- Sans.ttf.orig +++ Sans.ttf *some diff-code*
--- /usr/share/fonts/Sans.ttf +++ /usr/share/fonts/Sans.ttf *some diff-code*
The Following 3 Users Say Thank You to Ancelad For This Useful Post: | ||
![]() |
Tags |
patchmanager, sailfish os |
|
I'll try the method you describe in your previous post. I'm not familiar with 'git' and I don't fully understand (yet) what your describing here.
What is 'git diff'? - my brother is a git with a difference, but I'm sure that won't help me!
Thanks for info, I'll let you know how I get on, I'm sure I will have more questions.
I've eaten, so it's now time to get busy 'diffing'
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..