]> arthur.barton.de Git - bup.git/commit
Inline git.cat() inside server-cmd.py
authorGabriel Filion <lelutin@gmail.com>
Fri, 25 Jun 2010 08:07:03 +0000 (04:07 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 27 Jun 2010 19:01:44 +0000 (15:01 -0400)
commit3d44218fb2a9feee4470dbc5314998a1816fee88
tree5e169c669c7b1f4e856ead99f62617d231a12e69
parentfe20afe35df107662af388f0ffe543ddc407ca76
Inline git.cat() inside server-cmd.py

Since the cat() function in git.py is used only inside the server-cmd.py
script, and since it is a discouraged use of CatPipe, inline the code
inside the server-cmd.py script.

At the same time, make the CatPipe object persistent between calls to
the "cat" command to remove unnecessary deletion/creation or resources.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/server-cmd.py
lib/bup/git.py