Skip to content

Commit 96b5db4

Browse files
Update parsing_git_log.md: fix table flag -n to -i (#1995)
1 parent a4e00cc commit 96b5db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/parsing_git_log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ And there you have it. The top 10 committers and we learned a little bit of pars
530530
Here's one last little known command. Perhaps you don't want your table numbered starting with 0. Here's a way to change that with the `table` command.
531531

532532
```nu
533-
git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD | lines | split column "»¦«" commit subject name email date | upsert date {|d| $d.date | into datetime} | group-by name | transpose | upsert column1 {|c| $c.column1 | length} | sort-by column1 | rename name commits | reverse | first 10 | table -n 1
533+
git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD | lines | split column "»¦«" commit subject name email date | upsert date {|d| $d.date | into datetime} | group-by name | transpose | upsert column1 {|c| $c.column1 | length} | sort-by column1 | rename name commits | reverse | first 10 | table -i 1
534534
# => ────┬────────────────────┬─────────
535535
# => # │ name │ commits
536536
# => ────┼────────────────────┼─────────

0 commit comments

Comments
 (0)