jianli / git-playback Goto Github PK
View Code? Open in Web Editor NEWA git command to play back file history.
A git command to play back file history.
There are missing files for latest version 0.1.1 on pypi.
The main event loop is very CPU intensive (when not interacting with the program). Can this be remedied?
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
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'
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!
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)
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
Please choose the license for your project and add it to the repo. Thanks.
In 2020 does this software still work? I don't see how git is going to recognize this parameter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.