]> git.ipfire.org Git - thirdparty/man-pages.git/commit
scripts/bash_aliases: man_gitstaged(): Script around a porcelain git command
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 9 May 2021 21:38:57 +0000 (23:38 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 9 May 2021 23:27:19 +0000 (11:27 +1200)
commitb08daf3c0cb75fbbe7998f043b6d2bddd18cb3cf
tree44aea38472dc01b4b09229ed694ecc6dd0a254ec
parentf493a71fe135f6283b02a1f7376bbded46447bbe
scripts/bash_aliases: man_gitstaged(): Script around a porcelain git command

The output of 'git status' is not stable.

The more stable 'git status --porcelain' is more complex,
and scripting around it would be more complex.

However, 'git diff --staged --name-only' produces
the output that we were lookiong for.

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
scripts/bash_aliases