From: Nicolas Boisselier Date: Mon, 10 Sep 2018 22:31:20 +0000 (+0100) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=29e8edf38b3aea8fa96092b7b188b0c094b82fe1;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 5f781134..93d93555 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -58,6 +58,13 @@ nb_repos_grep() { grep $@ `nb_repos` } +nb_repos_ls_files() { + local i + for i in `nb_repos`; do + git -C "$i" ls-files | sed "s!^!$i/!" + done +} + # NB 13.12.16: TODO replace with nb_repos and nb_repos_ls # NB 21.10.17 nb_repo() { # NB 21.10.17 [ -z "$FUNCNAME" ] && local FUNCNAME='nb_repo' # for busybox