From 127fa64e3e1630884f6ede36401ebdc89430ae73 Mon Sep 17 00:00:00 2001 From: kiara Date: Mon, 28 Jul 2025 16:24:01 +0200 Subject: [PATCH] Update parsing_git_log.md: fix `table` flag `-n` to `-i` --- cookbook/parsing_git_log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/parsing_git_log.md b/cookbook/parsing_git_log.md index 78a58b234ca..a129107155e 100644 --- a/cookbook/parsing_git_log.md +++ b/cookbook/parsing_git_log.md @@ -530,7 +530,7 @@ And there you have it. The top 10 committers and we learned a little bit of pars 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. ```nu -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 +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 # => ────┬────────────────────┬───────── # => # │ name │ commits # => ────┼────────────────────┼─────────