Module Expr Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Pass orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body ImportFrom alias identifier Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str Num body Expr Str Assign NameStore NameLoad For NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr NameLoad body If UnaryOpNot NameLoad body Expr Yield BinOpMod Str NameLoad Expr Yield BinOpMod Str NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Yield BinOpMod Str TupleLoad BinOpAdd NameLoad Num BinOpSub NameLoad NameLoad BinOpAdd NameLoad Num BinOpSub NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body For NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad body Expr Yield BinOpAdd Str NameLoad Continue If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body For NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad body If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str Expr Yield BinOpAdd Str NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body For NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad body If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str Expr Yield BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam TupleStore NameStore NameStore NameStore TupleStore NameStore NameStore NameStore defaults body Expr Str FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Return BinOpMult Str Num orelse Return SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return ListLoad decorator_list If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore TupleStore NameStore NameStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str handlers ExceptHandler type NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Slice BinOpAdd NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Str Str Str Assign NameStore NameLoad For NameStore NameLoad body If CompareEq NameLoad Str body Break If NameLoad body If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad Str attr orelse AugAssignAdd AttributeStore NameLoad attr BinOpAdd Str NameLoad Assign NameStore NameLoad orelse AugAssignAdd AttributeStore NameLoad attr NameLoad Assign NameStore Str For NameStore NameLoad body If CompareEq NameLoad Str body Break AugAssignAdd NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A Classes for dealing with git am-style patches.

These patches are basically unified diffs with some extra metadata tacked
on.
 difflib SequenceMatcher N/A rfc822 N/A subprocess N/A time lib.dulwich.objects Blob Commit write_commit_patch N/A N/A f commit contents progress version N/A None N/A N/A Write a individual file patch.

    :param commit: Commit object
    :param progress: Tuple with current patch number and total.
    :return: tuple with filename and contents
     N/A N/A num total progress N/A N/A N/A f write N/A From %s %s
 N/A N/A commit id N/A N/A time ctime N/A commit commit_time N/A N/A N/A f write N/A From: %s
 N/A commit author N/A N/A N/A f write N/A Date: %s
 N/A N/A time strftime %a, %d %b %Y %H:%M:%S %Z N/A N/A N/A f write N/A Subject: [PATCH %d/%d] %s
 N/A num total N/A commit message N/A N/A N/A f write N/A N/A N/A f write ---
 N/A N/A N/A p N/A N/A subprocess Popen N/A diffstat stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A OSError N/A e N/A N/A N/A N/A N/A diffstat _ N/A N/A p communicate contents N/A N/A N/A f write diffstat N/A N/A N/A f write N/A N/A N/A f write contents N/A N/A N/A f write -- 
 N/A N/A version None N/A dulwich __version__ dulwich_version N/A N/A N/A f write N/A Dulwich %d.%d.%d
 dulwich_version N/A N/A N/A N/A f write N/A %s
 version N/A get_summary N/A N/A commit N/A N/A N/A Determine the summary line for use in a filename.

    :param commit: Commit
    :return: Summary string
     N/A N/A N/A N/A N/A N/A N/A commit message splitlines N/A 0 replace - N/A unified_diff N/A N/A a b fromfile tofile n N/A 3 N/A N/A difflib.unified_diff that doesn't write any dates or trailing spaces.

    Based on the same function in Python2.6.5-rc2's difflib.py
     N/A started False N/A group N/A N/A N/A SequenceMatcher None a b get_grouped_opcodes n N/A N/A N/A started N/A N/A N/A N/A --- %s
 fromfile N/A N/A N/A +++ %s
 tofile N/A started True N/A N/A i1 i2 j1 j2 N/A N/A N/A group N/A 0 N/A 1 N/A N/A group N/A -1 N/A 2 N/A N/A group N/A 0 N/A 3 N/A N/A group N/A -1 N/A 4 N/A N/A N/A @@ -%d,%d +%d,%d @@
 N/A N/A i1 1 N/A i2 i1 N/A j1 1 N/A j2 j1 N/A N/A tag i1 i2 j1 j2 group N/A N/A N/A tag equal N/A N/A line N/A a N/A i1 i2 N/A N/A N/A N/A line N/A N/A N/A N/A tag replace N/A tag delete N/A N/A line N/A a N/A i1 i2 N/A N/A N/A N/A N/A line N/A -1 N/A N/A line 
\ No newline at end of file
 N/A N/A N/A - line N/A N/A N/A tag replace N/A tag insert N/A N/A line N/A b N/A j1 j2 N/A N/A N/A N/A N/A line N/A -1 N/A N/A line 
\ No newline at end of file
 N/A N/A N/A + line N/A write_blob_diff N/A N/A f N/A old_path old_mode old_blob N/A new_path new_mode new_blob N/A N/A N/A Write diff file header.

    :param f: File-like object to write to
    :param (old_path, old_mode, old_blob): Previous file (None if nonexisting)
    :param (new_path, new_mode, new_blob): New file (None if nonexisting)
     blob_id N/A N/A blob N/A N/A N/A N/A blob None N/A N/A N/A 0 7 N/A N/A N/A N/A blob id N/A 7 N/A lines N/A N/A blob N/A N/A N/A N/A blob None N/A N/A N/A N/A N/A blob data splitlines True N/A N/A N/A N/A N/A N/A old_path None N/A N/A old_path /dev/null N/A N/A old_path N/A a/%s old_path N/A N/A new_path None N/A N/A new_path /dev/null N/A N/A new_path N/A b/%s new_path N/A N/A N/A f write N/A diff --git %s %s
 N/A old_path new_path N/A N/A old_mode new_mode N/A N/A N/A new_mode None N/A N/A N/A old_mode None N/A N/A N/A N/A f write N/A old mode %o
 old_mode N/A N/A N/A f write N/A new mode %o
 new_mode N/A N/A N/A N/A f write N/A deleted mode %o
 old_mode N/A N/A N/A f write N/A index %s..%s N/A N/A blob_id old_blob N/A blob_id new_blob N/A N/A new_mode None N/A N/A N/A N/A f write N/A  %o new_mode N/A N/A N/A f write N/A old_contents N/A lines old_blob N/A new_contents N/A lines new_blob N/A N/A N/A f writelines N/A unified_diff old_contents new_contents old_path new_path N/A write_tree_diff N/A N/A f store old_tree new_tree N/A N/A N/A Write tree diff.

    :param f: File-like object to write to.
    :param old_tree: Old tree id
    :param new_tree: New tree id
     N/A changes N/A N/A store tree_changes old_tree new_tree N/A N/A N/A oldpath newpath N/A oldmode newmode N/A oldsha newsha changes N/A N/A N/A oldsha None N/A N/A old_blob N/A N/A Blob from_string N/A N/A old_blob N/A store N/A oldsha N/A N/A newsha None N/A N/A new_blob N/A N/A Blob from_string N/A N/A new_blob N/A store N/A newsha N/A N/A write_blob_diff f N/A oldpath oldmode old_blob N/A newpath newmode new_blob N/A git_am_patch_split N/A N/A f N/A N/A N/A Parse a git-am-style patch and split it up into bits.

    :param f: File-like object to parse
    :return: Tuple with commit object, diff contents and git version
     N/A msg N/A N/A rfc822 Message f N/A c N/A Commit N/A N/A c author N/A msg N/A from N/A N/A c committer N/A msg N/A from N/A N/A N/A patch_tag_start N/A N/A N/A msg N/A subject index [PATCH N/A N/A N/A ValueError N/A N/A subject N/A msg N/A subject N/A N/A close N/A N/A N/A msg N/A subject index ]  patch_tag_start N/A subject N/A N/A msg N/A subject N/A N/A close 2 N/A N/A c message N/A N/A N/A subject replace N/A first True N/A l f N/A N/A N/A l ---
 N/A N/A N/A first N/A N/A N/A N/A l startswith From:  N/A N/A N/A c author N/A N/A N/A l N/A N/A len From:  rstrip N/A N/A N/A c message N/A l N/A first False N/A N/A N/A c message l N/A diff N/A l f N/A N/A N/A l -- 
 N/A N/A N/A diff l N/A N/A N/A version N/A N/A N/A N/A f next rstrip N/A N/A N/A StopIteration N/A N/A version None N/A N/A c diff version N/A