1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-07 06:59:38 +00:00

Merge pull request #614 from ThomasWaldmann/list-short-repo

implement --short for borg list REPO, fixes #611
This commit is contained in:
TW 2016-01-29 21:54:19 +01:00
commit 68157d63fe

View file

@ -474,7 +474,10 @@ def do_list(self, args):
for archive_info in manifest.list_archive_infos(sort_by='ts'):
if args.prefix and not archive_info.name.startswith(args.prefix):
continue
print(format_archive(archive_info))
if args.short:
print(archive_info.name)
else:
print(format_archive(archive_info))
return self.exit_code
def do_info(self, args):