Coder Social home page Coder Social logo

git-playback's Introduction

git-playback's People

Contributors

jianli avatar lowks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

git-playback's Issues

git.exc.InvalidGitRepositoryError

Within a git directory;

 git-playback some_file
Traceback (most recent call last):
  File "/usr/bin/git-playback", line 11, in <module>
    load_entry_point('git-playback==0.1.1rc0', 'console_scripts', 'git-playback')()
  File "/usr/lib/python3.5/site-packages/playback/__init__.py", line 145, in playback
    curses.wrapper(function)
  File "/usr/lib/python3.5/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python3.5/site-packages/playback/__init__.py", line 50, in function
    repo = git.Repo(os.getcwd())
  File "/usr/lib/python3.5/site-packages/git/repo/base.py", line 171, in __init__
    raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: <snip>/some/folder
python --version
Python 3.5.2
pip freeze | grep playback
git-playback==0.1.1rc0

Does not work on ubuntu 13.10.

Installed via :

 $sudo pip install git-playback
[sudo] password for anil: 
Downloading/unpacking git-playback
  Downloading git-playback-0.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/git-playback/setup.py) egg_info for package git-playback

Downloading/unpacking gitpython (from git-playback)
  Downloading GitPython-0.1.7.tar.gz
  Running setup.py (path:/tmp/pip_build_root/gitpython/setup.py) egg_info for package gitpython

Installing collected packages: git-playback, gitpython
  Running setup.py install for git-playback

    Installing git-playback script to /usr/local/bin
  Running setup.py install for gitpython

Successfully installed git-playback gitpython
Cleaning up...

And then going a git playback gives:

$ git playback Gemfile
Traceback (most recent call last):
  File "/usr/local/bin/git-playback", line 9, in <module>
    load_entry_point('git-playback==0.1', 'console_scripts', 'git-playback')()
  File "/usr/local/lib/python2.7/dist-packages/playback/__init__.py", line 145, in playback
    except git.exc.GitCommandError as err:
AttributeError: 'module' object has no attribute 'exc'

Fail on first try

Hi,

I'm trying to use git-playback but I got this error
$ git playback .gitignore
Traceback (most recent call last):
File "C:\Users\mscarset\AppData\Local\Programs\Python\Python35-32\Scripts\git-playback-script.py", line 9, in <module> load_entry_point('git-playback==0.1.1rc0', 'console_scripts', 'git-playback')() File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 558, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2682, in load_entry_point return ep.load() File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2355, in load return self.resolve() File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2361, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\site-packages\playback\__init__.py", line 2, in <module> import curses File "c:\users\mscarset\appdata\local\programs\python\python35-32\lib\curses\__init__.py", line 13, in <module> from _curses import * ImportError: No module named '_curses'

Any idea how I can resolve it?

Thanks!

Playback fails when file includes non-ASCII characters

I have a file whose default template-generated content includes the copyright circle-c symbol, u'\xa9'.

Attempting to run git playback file leads to an exception:

Traceback (most recent call last):
  File "/usr/local/bin/git-playback", line 11, in <module>
    sys.exit(playback())
  File "/usr/local/lib/python2.7/site-packages/playback/__init__.py", line 145, in playback
    curses.wrapper(function)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/site-packages/playback/__init__.py", line 136, in function
    display_line(window, row, line, color)
  File "/usr/local/lib/python2.7/site-packages/playback/__init__.py", line 37, in display_line
    display_row, display_column * col_width, line[:col_width], color)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 16: ordinal not in range(128)

No visible playback

Just launched git-playback against a file in my repository, and although it seems to be navigating through commits correctly using keyboard shortcuts (as shown by footer line), there's nothing visible in the main screen (unless it's black on black text or something).

The build was installed on Lubuntu 14.10 by running...

sudo pip install git-playback

License

Please choose the license for your project and add it to the repo. Thanks.

Does this still work

In 2020 does this software still work? I don't see how git is going to recognize this parameter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.