1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Add a script to list git branches and their age

Useful to find forgotten stale branches.
This commit is contained in:
Aurelien Gateau 2021-05-18 20:42:54 +02:00
parent 8811fc2042
commit fe3adb9d0b

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"