Add FileInfo module
- Author
- Maarten 'Vngngdn' Vangeneugden
- Date
- Oct. 19, 2017, 3:23 a.m.
- Hash
- b46927ab9090a38d7e7be3e9c64e1a0f3b8993de
- Parent
- 0b0c8ac62f4d6f1e41704697f2dbf5580f6e8703
- Modified file
- GitActions/FileInfo.py
GitActions/FileInfo.py ¶
15 additions and 0 deletions.
View changes Hide changes
+ |
1 |
|
+ |
2 |
from ..models import Repository |
+ |
3 |
import git |
+ |
4 |
|
+ |
5 |
|
+ |
6 |
def get_changing_commits(repository, file): |
+ |
7 |
""" Returns a list of all commits in which the file was changed. |
+ |
8 |
""" |
+ |
9 |
presented_commits = get_presented_commits(repository, file) |
+ |
10 |
|
+ |
11 |
|
+ |
12 |
def get_presented_commits(repository, file): |
+ |
13 |
""" Returns a list of all commits in which the file occurs. |
+ |
14 |
""" |
+ |
15 |