]> arthur.barton.de Git - bup.git/blob - cmd/ls-cmd.py
Add restore from remote: "bup restore -r host:path ..."
[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
8 import sys
9
10 from bup import git, vfs, ls
11
12
13 git.check_repo_or_die()
14 top = vfs.RefList(None)
15
16 # Check out lib/bup/ls.py for the opt spec
17 ret = ls.do_ls(sys.argv[1:], top, default='/', spec_prefix='bup ')
18 sys.exit(ret)