mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03: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
@ -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…
Reference in New Issue
Block a user