Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved all repo stats code from git.py to the base #221

Merged
merged 2 commits into from
Apr 1, 2016
Merged

Moved all repo stats code from git.py to the base #221

merged 2 commits into from
Apr 1, 2016

Conversation

b-ryan
Copy link
Owner

@b-ryan b-ryan commented Dec 27, 2015

When all of the new code to provide more interesting stats was added to
git.py, it was not very re-usable. A few pull requests could use it
though. In particular, #105 adds more info to the svn segment and #210
does the same for mercurial. I would rather not create inconsistencies
among these segments or have them duplicate code. Moving it into the
base file creates a place where each segment can access it and have a
consistent behavior.

When all of the new code to provide more interesting stats was added to
git.py, it was not very re-usable. A few pull requests could use it
though. In particular, #105 adds more info to the svn segment and #210
does the same for mercurial. I would rather not create inconsistencies
among these segments or have them duplicate code. Moving it into the
base file creates a place where each segment can access it and have a
consistent behavior.
@b-ryan b-ryan merged commit fb6287b into b-ryan:master Apr 1, 2016
@b-ryan b-ryan deleted the refactor/repo-stats-class branch April 1, 2016 18:27
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
Moved all repo stats code from git.py to the base
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
Moved all repo stats code from git.py to the base
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
LeonardoGentile added a commit to LeonardoGentile/powerline-shell that referenced this pull request Sep 6, 2016
* 'master' of github.com:banga/powerline-shell: (38 commits)
  changelog
  fix unicode issue for py3
  move changelog to own file, add changelog for b-ryan#221
  no need for a ternary
  Moved all repo stats code from git.py to the base
  readme note about b-ryan#212
  convert uptime comments into test cases
  add circle.yml that installs dev_requirements.txt
  add tests for the git segment
  have the install script add each segment so the files can be imported for testing
  readme note
  Fix sys.version_info for Python<=2.6
  Fix unicode digest error on Py3
  Fix py3 ImportError by using relative import
  Try hashlib over md5 (md5 is deprecated)
  change the install command's hashbang to just python
  Docs: rm indent level in codeblock
  release note
  only include the user's theme if it is not the default
  release note
  ...

# Conflicts:
#	powerline_shell_base.py
#	segments/git.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant