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

Pass change_parent_directories=True to git.Repo() #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions playback/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def function(window):
curses.init_pair(1, curses.COLOR_RED, -1)
curses.init_pair(2, curses.COLOR_GREEN, -1)

repo = git.Repo(os.getcwd())
repo = git.Repo(os.getcwd(), search_parent_directories=True)
top_level = repo.git.rev_parse(show_toplevel=True)
file_path = os.path.relpath(
os.path.join(os.getcwd(), sys.argv[1]), top_level)
Expand All @@ -71,7 +71,7 @@ def function(window):
rewinding = False
diff = []

while 1:
while True:
# get keyboard input
window.nodelay(1) # don't wait for input
key = window.getch()
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='git-playback',
version='0.1.1',
version='0.2',
url='https://github.com/jianli/git-playback',
description='A git command to play back file history.',
packages=find_packages('.'),
Expand All @@ -14,6 +14,6 @@
),
},
install_requires=[
'gitpython>=0.3.2.RC1',
'GitPython',
],
)