]> xenbits.xensource.com Git - people/larsk/xenproject-org-gitdm.git/commit
Move out the grabpatch from the parser
authorGermán Póo-Caamaño <gpoo@gnome.org>
Thu, 23 Jun 2011 01:57:02 +0000 (18:57 -0700)
committerGermán Póo-Caamaño <gpoo@gnome.org>
Thu, 23 Jun 2011 02:27:47 +0000 (19:27 -0700)
commit7b26ae210995a6a746dbfb20ede382bee7808dc9
treeb71ff81874ee2e15cd42b45be4fa6979158324ae
parentefcc42015375e79d27c2a6ac9e290d16d06ccf81
Move out the grabpatch from the parser

The class LogPatchSplitter provides an iterator per patch.  This
makes the code cleaner, easier to read and more pythonic.
The class only gets each commit set as lines.

It is possible to test it separately by:
   $ git log | python logparser.py | more

Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
gitdm
logparser.py [new file with mode: 0644]