diff --git a/git/git_branch_age.nu b/git/git_branch_age.nu new file mode 100755 index 0000000..43dd136 --- /dev/null +++ b/git/git_branch_age.nu @@ -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"