From a4d5006b5aeb71258a40ab9078c03a418c80ba13 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 20 Oct 2011 12:47:32 +0800 Subject: [PATCH] Removed sed command. I can't remember why it was necessary. --- 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 e5d0af9..793b66e 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 "# "; git show --oneline --name-only $@ | sed "s/\r//g" | head -n 1; echo "# " + echo -n "# "; git show --oneline --name-only $@ | head -n1; echo "# " for file in $(git show --pretty="format:" --name-only $@ | grep -v '^$'); do let f++ export $git_env_char$f=$file # Export numbered variable.