Removed sed command. I can't remember why it was necessary.
This commit is contained in:
@@ -82,7 +82,7 @@ git_silent_add_shorcuts() {
|
|||||||
git_show_affected_files(){
|
git_show_affected_files(){
|
||||||
f=0 # File count
|
f=0 # File count
|
||||||
# Show colored revision and commit message
|
# 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
|
for file in $(git show --pretty="format:" --name-only $@ | grep -v '^$'); do
|
||||||
let f++
|
let f++
|
||||||
export $git_env_char$f=$file # Export numbered variable.
|
export $git_env_char$f=$file # Export numbered variable.
|
||||||
|
|||||||
Reference in New Issue
Block a user