]> arthur.barton.de Git - bup.git/commit
Refactor: unify ls/ftp-ls code
authorGabriel Filion <lelutin@gmail.com>
Mon, 16 May 2011 04:27:24 +0000 (00:27 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 29 May 2011 23:02:47 +0000 (19:02 -0400)
commit36f565f3d201cabc40c4e6ca235a497686ac39e0
tree44b8b0634377f88887fb9fb207c227c280cf2a2d
parent8aef5466e052117b3adcf36fdb6201b6725fcc1f
Refactor: unify ls/ftp-ls code

Both the 'ls' command and the 'ls' subcommand of the 'ftp' command use
some code that is very similar. Modifications must be done in two places
instead of one and this can lead to inconsistencies.

Refactor code so that both paths use the same function with the same opt
spec.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/ftp-cmd.py
cmd/ls-cmd.py
lib/bup/ls.py [new file with mode: 0644]