-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test(git-authors): add unit test #1098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
| minversion = 7.4 | ||
| addopts = -ra -q | ||
| testpaths = tests | ||
| faulthandler_timeout = 5 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,87 +1,59 @@ | ||
| .\" generated with Ronn/v0.7.3 | ||
| .\" https://github.com/rtomayko/ronn/tree/0.7.3 | ||
| . | ||
| .TH "GIT\-AUTHORS" "1" "October 2017" "" "Git Extras" | ||
| . | ||
| .\" generated with Ronn-NG/v0.9.1 | ||
| .\" https://github.com/apjanke/ronn-ng/tree/0.9.1 | ||
| .TH "GIT\-AUTHORS" "1" "November 2023" "" "Git Extras" | ||
| .SH "NAME" | ||
| \fBgit\-authors\fR \- Generate authors report | ||
| . | ||
| .SH "SYNOPSIS" | ||
| \fBgit\-authors\fR [\-l, \-\-list] [\-\-no\-email] | ||
| . | ||
| .SH "DESCRIPTION" | ||
| Populates the file matching \fIauthors|contributors \-i\fR with the authors of commits, according to the number of commits per author\. Opens the file in \fB$EDITOR\fR when set\. | ||
| . | ||
| .TS | ||
| allbox; | ||
| Populates the file matching _authors contributors \-i_ with the authors of commits, according to the number of commits per author\. | ||
| .TE | ||
| .P | ||
| See the "MAPPING AUTHORS" section of \fBgit\-shortlog\fR(1) to coalesce together commits by the same person\. | ||
| . | ||
| .SH "OPTIONS" | ||
| \-l, \-\-list | ||
| . | ||
| .P | ||
| Show authors\. | ||
| . | ||
| .P | ||
| \-\-no\-email | ||
| . | ||
| .P | ||
| Don\'t show authors\' email\. | ||
| . | ||
| .SH "EXAMPLES" | ||
| . | ||
| .TP | ||
| Updating AUTHORS file: | ||
| . | ||
| .IP | ||
| .IP "" 4 | ||
| .nf | ||
| $ git authors | ||
| . | ||
| .TP | ||
| .fi | ||
| .IP "" 0 | ||
| .P | ||
| Listing authors: | ||
| . | ||
| .IP | ||
| $ git authors \-\-list | ||
| . | ||
| .IP "" 4 | ||
| . | ||
| .nf | ||
|
|
||
| $ git authors \-\-list | ||
| TJ Holowaychuk <tj@vision\-media\.ca> | ||
vanpipy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| hemanth\.hm <hemanth\.hm@gmail\.com> | ||
| Jonhnny Weslley <jw@jonhnnyweslley\.net> | ||
| nickl\- <github@jigsoft\.co\.za> | ||
| Leila Muhtasib <muhtasib@gmail\.com> | ||
| . | ||
| .fi | ||
| . | ||
| .IP "" 0 | ||
|
|
||
| . | ||
| .TP | ||
| .P | ||
| Listing authors without email: | ||
| . | ||
| .IP | ||
| $ git authors \-\-list \-\-no\-email | ||
| . | ||
| .IP "" 4 | ||
| . | ||
| .nf | ||
|
|
||
| $ git authors \-\-list \-\-no\-email | ||
| TJ Holowaychuk | ||
| hemanth\.hm | ||
| Jonhnny Weslley | ||
| nickl\- | ||
| Leila Muhtasib | ||
| . | ||
| .fi | ||
| . | ||
| .IP "" 0 | ||
|
|
||
| . | ||
| .SH "AUTHOR" | ||
| Written by Titus Wormer <\fItituswormer@gmail\.com\fR> | ||
| . | ||
| .SH "REPORTING BUGS" | ||
| <\fIhttps://github\.com/tj/git\-extras/issues\fR> | ||
| . | ||
| .SH "SEE ALSO" | ||
| <\fIhttps://github\.com/tj/git\-extras\fR> | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,6 @@ git-authors(1) -- Generate authors report | |
| ## DESCRIPTION | ||
|
|
||
| Populates the file matching _authors|contributors -i_ with the authors of commits, according to the number of commits per author. | ||
| Opens the file in **$EDITOR** when set. | ||
|
|
||
| See the "MAPPING AUTHORS" section of **git-shortlog**(1) to coalesce together commits by the same person. | ||
|
|
||
|
|
@@ -24,33 +23,27 @@ git-authors(1) -- Generate authors report | |
|
|
||
| ## EXAMPLES | ||
|
|
||
| * Updating AUTHORS file: | ||
| Updating AUTHORS file: | ||
|
|
||
| $ git authors | ||
|
|
||
| * Listing authors: | ||
| Listing authors: | ||
vanpipy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| $ git authors --list | ||
|
|
||
| ``` | ||
| TJ Holowaychuk <[email protected]> | ||
| hemanth.hm <[email protected]> | ||
| Jonhnny Weslley <[email protected]> | ||
| nickl- <[email protected]> | ||
| Leila Muhtasib <[email protected]> | ||
| ``` | ||
|
|
||
| * Listing authors without email: | ||
| Listing authors without email: | ||
|
|
||
| $ git authors --list --no-email | ||
|
|
||
| ``` | ||
| TJ Holowaychuk | ||
| hemanth.hm | ||
| Jonhnny Weslley | ||
| nickl- | ||
| Leila Muhtasib | ||
| ``` | ||
|
|
||
| ## AUTHOR | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.