mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-04 05:32:40 +02:00
Dont output empty brackets for release versions which dont have KITTY_VCS_REV
This commit is contained in:
@@ -486,8 +486,9 @@ def prettify_rst(text: str) -> str:
|
||||
def version(add_rev: bool = False) -> str:
|
||||
rev = ''
|
||||
from . import fast_data_types
|
||||
if add_rev and hasattr(fast_data_types, 'KITTY_VCS_REV'):
|
||||
rev = f' ({fast_data_types.KITTY_VCS_REV[:10]})'
|
||||
if add_rev:
|
||||
if getattr(fast_data_types, 'KITTY_VCS_REV', ''):
|
||||
rev = f' ({fast_data_types.KITTY_VCS_REV[:10]})'
|
||||
return '{} {}{} created by {}'.format(italic(appname), green(str_version), rev, title('Kovid Goyal'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user