gitlogstats 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/.github/workflows/build.yaml +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/.gitignore +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/LICENSE +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/PKG-INFO +1 -1
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/Pipfile +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/Pipfile.lock +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/README.md +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/pyproject.toml +1 -1
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/repos.txt +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/requirements.txt +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/src/gitlogstats/GitLogsParser.py +2 -1
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/src/gitlogstats/__init__.py +0 -0
- {gitlogstats-1.0.0 → gitlogstats-1.0.1}/src/gitlogstats/__main__.py +2 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitlogstats
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Track developers' contributions to one or more git repositories within a particular time range.
|
|
5
5
|
Project-URL: Homepage, https://github.com/bloombar/git-developer-contribution-analysis
|
|
6
6
|
Project-URL: Repository, https://github.com/bloombar/git-developer-contribution-analysis.git
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gitlogstats"
|
|
7
7
|
description = "Track developers' contributions to one or more git repositories within a particular time range."
|
|
8
|
-
version = "1.0.
|
|
8
|
+
version = "1.0.1"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name="Foo Barstein", email="foo.barstein@onepotcooking.com" },
|
|
11
11
|
]
|
|
File without changes
|
|
File without changes
|
|
@@ -69,7 +69,8 @@ class GitLogsParser:
|
|
|
69
69
|
exclusions = '-- . ' + ' '.join(['":(exclude,glob)**/{}"'.format(x) for x in self.exclusions]) # put the exclusions in the format git logs uses
|
|
70
70
|
# exclusions = r'''-- . ":(exclude,glob)**/package-lock.json" ":(exclude,glob)**/*.jpg" ":(exclude,glob)**/*.png" ":(exclude,glob)**/*.gif" ":(exclude,glob)**/*.svg" ":(exclude,glob)**/*.pdf" ":(exclude,glob)**/*.zip" ":(exclude,glob)**/*.csv" ":(exclude,glob)**/*.json" '''
|
|
71
71
|
cmd = f'git log --shortstat --author="{contributor}" --after="{git_start_date}" --before="{git_end_date}" {exclusions}'
|
|
72
|
-
self.verboseprint(f'Running command: {cmd}
|
|
72
|
+
self.verboseprint(f'Running command: {cmd}')
|
|
73
|
+
# self.verboseprint(f'With exclusions: {exclusions}')
|
|
73
74
|
cmd = shlex.split(cmd) # split command by spaces, except where in quotes
|
|
74
75
|
result = subprocess.run(cmd, capture_output=True) # run the command
|
|
75
76
|
logs = result.stdout.decode('utf-8') # capture the output
|
|
File without changes
|
|
@@ -31,7 +31,7 @@ def main():
|
|
|
31
31
|
|
|
32
32
|
# fix up exclusions
|
|
33
33
|
args.exclusions = re.split(r',\s*', args.exclusions) # split up comma-separated string into list
|
|
34
|
-
|
|
34
|
+
# print(f'Exclusions: {args.exclusions}')
|
|
35
35
|
|
|
36
36
|
# deal with repofile, if specified
|
|
37
37
|
repository_urls = [args.repository]
|
|
@@ -62,7 +62,7 @@ def main():
|
|
|
62
62
|
os.chdir(repo_dir) # navigate into this repository's directory
|
|
63
63
|
subprocess.run(['git', 'pull'], capture_output=True) # clone the code from github
|
|
64
64
|
|
|
65
|
-
git_logs_parser = GitLogsParser(repo=repo_dir, start=args.start, end=args.end, username=args.user, verbose=args.verbose, clean=args.clean)
|
|
65
|
+
git_logs_parser = GitLogsParser(repo=repo_dir, start=args.start, end=args.end, username=args.user, exclusions=args.exclusions, verbose=args.verbose, clean=args.clean)
|
|
66
66
|
results = git_logs_parser.parse()
|
|
67
67
|
output = git_logs_parser.format_results(results, args.format)
|
|
68
68
|
print(output)
|