(git_repo, target, reverse)
| 1354 | return pstderr |
| 1355 | |
| 1356 | def walker(git_repo, target, reverse): |
| 1357 | flags = pygit2.GIT_SORT_TOPOLOGICAL | pygit2.GIT_SORT_TIME |
| 1358 | if reverse: |
| 1359 | flags = flags | pygit2.GIT_SORT_REVERSE |
| 1360 | return git_repo.walk(target, flags) |
| 1361 | |
| 1362 | def _get_git_path(path): |
| 1363 | return path if sys.platform != 'win32' else path.replace('\\', '/') |