mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Merge pull request #51 from agateau/git_branch_age
Add a script to list git branches and their age
This commit is contained in:
commit
fb3ea06aeb
1 changed files with 6 additions and 0 deletions
6
git/git_branch_age.nu
Executable file
6
git/git_branch_age.nu
Executable file
|
@ -0,0 +1,6 @@
|
|||
# Creates a table listing the branches of a git repository and the day of the last commit
|
||||
git branch | lines | str substring 2, | wrap name | insert "last commit" {
|
||||
get name | each {
|
||||
git show $it --no-patch --format=%as
|
||||
}
|
||||
} | sort-by "last commit"
|
Loading…
Add table
Add a link
Reference in a new issue