-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a773b5
commit 59d5337
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -10,6 +10,11 @@ namespace faker | |
class Git | ||
{ | ||
public: | ||
struct Author | ||
{ | ||
std::string name, email; | ||
}; | ||
|
||
/** | ||
* @brief Returns a random branch name. | ||
* | ||
|
@@ -78,5 +83,19 @@ class Git | |
* @endcode | ||
*/ | ||
static std::string commitSha(unsigned length = 40); | ||
|
||
|
||
/** | ||
* @brief Returns a random author name and email. | ||
* | ||
* @param | ||
* | ||
* @returns Author. | ||
* | ||
* @code | ||
* Git::author // {Author.name = "Rachel McLaughlin", Author.email = "[email protected]"} | ||
* @endcode | ||
*/ | ||
static Author author(); | ||
}; | ||
} |
This file contains 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 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