git log --follow, the gitpython way

后端 未结 3 1315
孤独总比滥情好
孤独总比滥情好 2021-02-01 02:19

I am trying to access the commit history of a single file as in:

git log --follow -- 

I have to use gitpython, so what I am doi

3条回答
  •  清歌不尽
    2021-02-01 03:17

    For example,

    With range time:

    g = git.Git("C:/path/to/your/repo") 
    loginfo = g.log('--since=2013-09-01','--author=KIM BASINGER','--pretty=tformat:','--numstat')
    print loginfo
    

    Output:

    3       2       path/in/your/solutions/some_file.cs
    

    You can see the added lines, removed lines and the file with these changes.

提交回复
热议问题