mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-13 07:33:47 +00:00
implement --short for borg list REPO, fixes #611
This commit is contained in:
parent
695dc68479
commit
12fe47fcd2
1 changed files with 4 additions and 1 deletions
|
@ -474,6 +474,9 @@ class Archiver:
|
|||
for archive_info in manifest.list_archive_infos(sort_by='ts'):
|
||||
if args.prefix and not archive_info.name.startswith(args.prefix):
|
||||
continue
|
||||
if args.short:
|
||||
print(archive_info.name)
|
||||
else:
|
||||
print(format_archive(archive_info))
|
||||
return self.exit_code
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue