0
votes
1answer
74 views

python program works fine from command line and as git difftool, but dies as external-diff

Here is the program running normally, it is dying but for a good reason (because files a and b do not exist). % dmp_diff a b {'LESS': '-R', 'LC_CTYPE': 'en_US.UTF-8', 'SHELL': '/usr/local/bin/zsh', ...
0
votes
1answer
216 views

Git diff is complaining, “external diff died, stopping at … ” with my python diff program

Here's the beginning part of my diff. #!/usr/bin/env python import fileinput import difflib import subprocess import sys # for debugging def info(type, value, info): import traceback ...
0
votes
0answers
24 views

How to track on which commits each of the lines in a file appears and disappears? Starting from the 1st commit of the file

Is it possible to track a specific lines of one file through commits (which commit they are added and later removed) using any kind of python library(Gitpython), git command or some kind of diff ...
2
votes
2answers
196 views

Bash script to select a single Python function from a file

For a git alias problem, I'd like to be able to select a single Python function from a file, by name. eg: ... def notyet(): wait for it def ok_start(x): stuff stuff def ...