201
def write_tree_diff(f, store, old_tree, new_tree):
226
def write_tree_diff(f, store, old_tree, new_tree, diff_binary=False):
204
229
:param f: File-like object to write to.
205
230
:param old_tree: Old tree id
206
231
:param new_tree: New tree id
208
235
changes = store.tree_changes(old_tree, new_tree)
209
236
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
210
237
write_object_diff(f, store, (oldpath, oldmode, oldsha),
238
(newpath, newmode, newsha),
214
242
def git_am_patch_split(f):