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:
commit
68157d63fe
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue