mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add git-log
This commit is contained in:
47
EXAMPLES.md
47
EXAMPLES.md
@ -1059,6 +1059,53 @@ cat /etc/fstab | jc --fstab -p
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
### git log
|
||||||
|
```bash
|
||||||
|
git log --stat | jc --git-log -p or: jc -p git log --stat
|
||||||
|
```
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"commit": "728d882ed007b3c8b785018874a0eb06e1143b66",
|
||||||
|
"author": "Kelly Brazil",
|
||||||
|
"author_email": "kellyjonbrazil@gmail.com",
|
||||||
|
"date": "Wed Apr 20 09:50:19 2022 -0400",
|
||||||
|
"stats": {
|
||||||
|
"files_changed": 2,
|
||||||
|
"insertions": 90,
|
||||||
|
"deletions": 12,
|
||||||
|
"files": [
|
||||||
|
"docs/parsers/git_log.md",
|
||||||
|
"jc/parsers/git_log.py"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"message": "add timestamp docs and examples",
|
||||||
|
"epoch": 1650462619,
|
||||||
|
"epoch_utc": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"commit": "b53e42aca623181aa9bc72194e6eeef1e9a3a237",
|
||||||
|
"author": "Kelly Brazil",
|
||||||
|
"author_email": "kellyjonbrazil@gmail.com",
|
||||||
|
"date": "Wed Apr 20 09:44:42 2022 -0400",
|
||||||
|
"stats": {
|
||||||
|
"files_changed": 5,
|
||||||
|
"insertions": 29,
|
||||||
|
"deletions": 6,
|
||||||
|
"files": [
|
||||||
|
"docs/parsers/git_log.md",
|
||||||
|
"docs/utils.md",
|
||||||
|
"jc/parsers/git_log.py",
|
||||||
|
"jc/utils.py",
|
||||||
|
"man/jc.1"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"message": "add calculated timestamp",
|
||||||
|
"epoch": 1650462282,
|
||||||
|
"epoch_utc": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
### /etc/group file
|
### /etc/group file
|
||||||
```bash
|
```bash
|
||||||
cat /etc/group | jc --group -p
|
cat /etc/group | jc --group -p
|
||||||
|
Reference in New Issue
Block a user