Home Explore Blog CI



nushell

10th chunk of `cookbook/parsing_git_log.md`
34a0508db83dfa9e71c2dd60d9f67711151eae1f9bc2bd7b000000010000138e
# =>     │          │ not a table (#4671)      │                   │                         │
# =>  11 │ ef70c8db │ Date parse refactor      │ Jonathan Moore    │ jtm170330@utdallas.edu  │ 2 days ago
# =>     │          │ (#4661)                  │                   │                         │
# =>  12 │ 0f437589 │ add last exit code to    │ Darren Schroeder  │ 343840+fdncred@users.no │ 2 days ago
# =>     │          │ starship parameters      │                   │ reply.github.com        │
# =>     │          │ (#4670)                  │                   │                         │
# =>  13 │ 796d4920 │ add char separators      │ Darren Schroeder  │ 343840+fdncred@users.no │ 2 days ago
# =>     │          │ (#4667)                  │                   │ reply.github.com        │
# =>  14 │ 78192100 │ Add shortcircuiting      │ Sophia                │ 547158+sophiajt@users.nor │ 2 days ago
# =>     │          │ boolean operators        │                   │ eply.github.com         │
# =>     │          │ (#4668)                  │                   │                         │
# =>  15 │ 4ebbe07d │ Polars upgrade (#4665)   │ Fernando Herrera  │ fernando.j.herrera@gmai │ 2 days ago
# =>     │          │                          │                   │ l.com                   │
# =>  16 │ 10ceac99 │ menu keybindings in      │ Fernando Herrera  │ fernando.j.herrera@gmai │ 2 days ago
# =>     │          │ default file (#4651)     │                   │ l.com                   │
# =>  17 │ 446c2aab │ Lets internals also      │ Sophia                │ 547158+sophiajt@users.nor │ 2 days ago
# =>     │          │ have exit codes (#4664)  │                   │ eply.github.com         │
# =>  18 │ 995757c0 │ flags for find (#4663)   │ Fernando Herrera  │ fernando.j.herrera@gmai │ 2 days ago
# =>     │          │                          │                   │ l.com                   │
# =>  19 │ 799fa984 │ Update reedline, revert  │ Stefan Holderbach │ sholderbach@users.norep │ 3 days ago
# =>     │          │ crossterm (#4657)        │                   │ ly.github.com           │
# =>  20 │ d2bd71d2 │ add LAST_EXIT_CODE       │ LordMZTE          │ lord@mzte.de            │ 3 days ago
# =>     │          │ variable (#4655)         │                   │                         │
# =>  21 │ 11bc0565 │ Find with regex flag     │ Fernando Herrera  │ fernando.j.herrera@gmai │ 3 days ago
# =>     │          │ (#4649)                  │                   │ l.com                   │
# =>  22 │ 3eca43c0 │ Plugins without file     │ Fernando Herrera  │ fernando.j.herrera@gmai │ 3 days ago
# =>     │          │ (#4650)                  │                   │ l.com                   │
# =>  23 │ ed46f0ea │ fix: add missing         │ Jae-Heon Ji       │ 32578710+jaeheonji@user │ 3 days ago
# =>     │          │ metadata for `ls_colors` │                   │ s.noreply.github.com    │
# =>     │          │ (#4603)                  │                   │                         │
# =>  24 │ 0c3ea636 │ Add support for stderr   │ Sophia                │ 547158+sophiajt@users.nor │ 4 days ago
# =>     │          │ and exit code (#4647)    │                   │ eply.github.com         │
# => ────┴──────────┴──────────────────────────┴───────────────────┴─────────────────────────┴──────────────
# => ...
```

Or even show me all the commits in the last 7 days.

```nu
git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD -n 25 | lines | split column "»¦«" commit subject name email date | upsert date {|d| $d.date | into datetime} | where ($it.date > ((date now) - 7day))
# => ────┬──────────┬──────────────────────────┬───────────────────┬───────────────────────────┬──────────────
# =>  #  │  commit  │         subject          │       name        │          email            │     date
# => ────┼──────────┼──────────────────────────┼───────────────────┼───────────────────────────┼──────────────
# =>   0 │ 42f1874a │ Update some examples     │ Justin Ma         │ hustcer@outlook.com       │ 7 hours ago

Title: Nushell Git Commit Log Examples
Summary
This shows a sample of recent git commits and example commands in Nushell to filter the git log output. The commands demonstrate how to split columns, convert date formats, and filter by date, specifically to show commits from the last 7 days.