Module for parsing git log --since="..." -p output into structured commit entries, combining the existing log metadata parser and the diff patch parser.
weeklyLog
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ParseWeeklyLogText | 1 | Parse the raw output text from git log --since="..." -p and convert it into a sequence of commitEntry objects, one per commit, each carrying its metadata, changed files, diff… |
| ParseCommitBlock | 1 | Parse a single commit block (an array of text lines) into a commitEntry. |
| GetWeeklyLog | 1 | Run git --no-pager log --since="<since>" -p on the specified repository directory and parse the output into structured commit entries. |
03 Members
String)Parse the raw output text from git log --since="..." -p and convert it into a sequence of commitEntry objects, one per commit, each carrying its metadata, changed files, diff content and added/deleted line counts.
| Name | Type | Description |
|---|---|---|
text | String | The raw text output from the |
An IEnumerable sequence of parsed commit entries extracted from the input text.
String())Parse a single commit block (an array of text lines) into a commitEntry. The metadata portion (before the first "diff --git" line) is parsed via the existing log.ParseGitLogText() logic, while the patch portion is parsed via the existing diff.ParseDiffText() logic.
String, String, String)Run git --no-pager log --since="<since>" -p on the specified repository directory and parse the output into structured commit entries.
| Name | Type | Description |
|---|---|---|
directory | String | The repository folder path to run the git log command against. |
since | String | The |
git | String | The git executable name or path. Defaults to |
An IEnumerable sequence of parsed commit entries from the last week (or the period specified by since).