From 6c82cc25ed5a361b93809bfa70f2879b49498a8e Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 20 Oct 2011 12:11:55 +0800 Subject: [PATCH] Made git_show_affected_files cross platform at the expense of colorized revision (for now) --- lib/git/status_shortcuts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index e21b26b..e5d0af9 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -82,7 +82,7 @@ git_silent_add_shorcuts() { git_show_affected_files(){ f=0 # File count # Show colored revision and commit message - echo -n "# "; script -q -c "git show --oneline --name-only $@" /dev/null | sed "s/\r//g" | head -n 1; echo "# " + echo -n "# "; git show --oneline --name-only $@ | sed "s/\r//g" | head -n 1; echo "# " for file in $(git show --pretty="format:" --name-only $@ | grep -v '^$'); do let f++ export $git_env_char$f=$file # Export numbered variable.