1
Fork 0
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:
Darren Schroeder 2021-05-18 16:28:28 -05:00 committed by GitHub
commit fb3ea06aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
git/git_branch_age.nu Executable file
View 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"