debug flag
This commit is contained in:
parent
e469e4343f
commit
d71f354f07
@ -11,18 +11,21 @@ def main() -> int:
|
|||||||
description="git authors, but for multiple repos at once"
|
description="git authors, but for multiple repos at once"
|
||||||
)
|
)
|
||||||
ap.add_argument(
|
ap.add_argument(
|
||||||
"walk_start_dir",
|
"--start",
|
||||||
help="Directory to start walking from",
|
help="Directory to start walking from",
|
||||||
default=Path("."),
|
default=Path("."),
|
||||||
type=Path,
|
type=Path,
|
||||||
)
|
)
|
||||||
|
ap.add_argument("--log-repos", help="Log the repos found", action="store_true")
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
|
|
||||||
# Find every subdirectory that is a git repo
|
# Find every subdirectory that is a git repo
|
||||||
git_dirs = []
|
git_dirs = []
|
||||||
for path in args.walk_start_dir.iterdir():
|
for path in args.start.iterdir():
|
||||||
if path.is_dir() and (path / ".git").is_dir():
|
if path.is_dir() and (path / ".git").is_dir():
|
||||||
git_dirs.append(path)
|
git_dirs.append(path)
|
||||||
|
if args.log_repos:
|
||||||
|
print(f"Reading GIT repo at: {path}")
|
||||||
|
|
||||||
# Collect the results of `git authors` from each repo
|
# Collect the results of `git authors` from each repo
|
||||||
authors = []
|
authors = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user