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:
parent
8811fc2042
commit
fe3adb9d0b
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