mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Add refs to git log output (#757)
This PR adds the list of references on a commit for the `gl` command
This commit is contained in:
parent
3f824d3f30
commit
c8c29728d8
1 changed files with 3 additions and 2 deletions
|
@ -566,9 +566,10 @@ export def _git_log [v num] {
|
|||
_git_log_stat $num
|
||||
} else { {} }
|
||||
let r = do -i {
|
||||
git log --reverse -n $num --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD
|
||||
git log --reverse -n $num --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD»¦«%D
|
||||
| lines
|
||||
| split column "»¦«" sha message author email date
|
||||
| split column "»¦«" sha message author email date refs
|
||||
| update refs { split row ", " | where not ($it | is-empty) }
|
||||
| each {|x| ($x| upsert date ($x.date | into datetime))}
|
||||
}
|
||||
if $v {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue