Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nosarthur committed Feb 5, 2019
1 parent d93d62d commit 2128982
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

test: clean
pytest tests --cov=./gita $(TEST_ARGS) -n=auto
dist:
dist: clean
python3 setup.py sdist
twine:
twine upload dist/*
Expand Down
4 changes: 2 additions & 2 deletions gita/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def describe(repos: Dict[str, str]) -> str:
"""
Return the status of all repos
"""
name_len = max([len(n) for n in repos.keys()])
name_width = max(len(n) for n in repos) + 1
for name in sorted(repos):
path = repos[name]
head = get_head(path)
dirty, staged, untracked, color = _get_repo_status(path)
yield f'{name:<{name_len+1}}{color}{head+" "+dirty+staged+untracked:<10}{Color.end} {get_commit_msg()}'
yield f'{name:<{name_width}}{color}{head+" "+dirty+staged+untracked:<10}{Color.end} {get_commit_msg()}'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
setup(
name='gita',
packages=['gita'],
version='0.6.4',
version='0.6.5',
description='Manage multiple git repos',
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -17,7 +17,7 @@
author_email='[email protected]',
license='MIT',
entry_points={'console_scripts': ['gita = gita.__main__:main']},
install_requires=['pyyaml'],
install_requires=['pyyaml>=3.13'],
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 2128982

Please sign in to comment.