From fc0bb2099983f39792087181e654442c3a159fa0 Mon Sep 17 00:00:00 2001 From: Jian Li Date: Sun, 8 Feb 2015 21:24:55 +1100 Subject: [PATCH 1/2] Bump version. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9ad4985..ce95bd7 100644 --- a/setup.py +++ b/setup.py @@ -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('.'), From ad96c544fccec7b107363faf953ea2aeb322ca73 Mon Sep 17 00:00:00 2001 From: Laur Aliste Date: Fri, 5 Feb 2016 12:19:45 +0100 Subject: [PATCH 2/2] Pass change_parent_directories=True to git.Repo() - otherwise git-playback works only if your working dir is on the repo root. --- playback/__init__.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playback/__init__.py b/playback/__init__.py index 8f4b94f..4717678 100755 --- a/playback/__init__.py +++ b/playback/__init__.py @@ -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) @@ -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() diff --git a/setup.py b/setup.py index ce95bd7..0293170 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,6 @@ ), }, install_requires=[ - 'gitpython>=0.3.2.RC1', + 'GitPython', ], )