git edit-*

Edit all files of a given type

Git alias:

edit-cached   = !"f() { git ls-files --cached             | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-deleted  = !"f() { git ls-files --deleted            | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-others   = !"f() { git ls-files --others             | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-ignored  = !"f() { git ls-files --ignored            | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-killed   = !"f() { git ls-files --killed             | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-modified = !"f() { git ls-files --modified           | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-stage    = !"f() { git ls-files --stage    | cut -f2 | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"
edit-unmerged = !"f() { git ls-files --unmerged | cut -f2 | sort -u ; }; `grave;git var GIT_EDITOR`grave; `grave;f`grave;"

Example:

git edit-cached
git edit-deleted
git edit-others
git edit-ignored
git edit-killed
git edit-modified
git edit-stage
git edit-unmerged

These aliases intentionally match the aliases git add-*.