git - What does interdiff do that diff cannot? -
if i'm trying find diff between 2 diffs, why can't diff
2 diffs?
i have tested
diff diff1 diff2
,interdiff diff1 diff2
, have not found difference in output. in case different?
(i aware interdiff's stated purpose find changes between 2 patches.)
interdiff - show differences between 2 diff files
interdiff creates unified format diff expresses difference between 2 diffs.
diffs must both relative same files.
best results, diffs must have @ least 3 lines of context.
an interdiff
text file in patch format describes changes between 2 versions of patch. using interdiff
s best practice saves time , reduces tedium reviewers allowing them focus on changes introduced in patch iterations.
you should supply 1 whenever update significant patch in issue queues (it ignored drupal.org testbots, make sure upload full patch too).
create interdiff using git
//always pull latest changes. git pull --rebase //create branch old patch. git checkout -b my_first_branch // download old version of patch wish // update , apply local git repository. git apply --index patchname.patch // commit changes old patch. git commit -m "my_first_branch" // depending on how work, have choice between // 2 options. if not yet have new patch created, can // create new branch. git checkout -b my_second_branch // otherwise, let's go mainline branch , create // new branch patch from. git checkout any_reuired_commit_id git checkout -b my_second_branch // make changes on new branch (e.g. apply new patch), // commit changes. git commit -m "my_second_branch" // generate interdiff comparing current (new) branch against // old branch. git diff my_first_branch > interdiff-my_first_branch-[new_comment_number].txt // can create updated patch @ point with: git diff any_reuired_commit_id > my_second_branch.patch
Comments
Post a Comment