]> arthur.barton.de Git - bup.git/blob - cmd/ls-cmd.py
031fbaefd7aba78339df53162d66b1773c8ce11d
[bup.git] / cmd / ls-cmd.py
1 #!/bin/sh
2 """": # -*-python-*-
3 bup_python="$(dirname "$0")/bup-python" || exit $?
4 exec "$bup_python" "$0" ${1+"$@"}
5 """
6 # end of bup preamble
7 import sys
8 from bup import git, vfs, ls
9 from bup.helpers import *
10
11
12 git.check_repo_or_die()
13 top = vfs.RefList(None)
14
15 # Check out lib/bup/ls.py for the opt spec
16 ret = ls.do_ls(sys.argv[1:], top, default='/', spec_prefix='bup ')
17 sys.exit(ret)