"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/cdi_get_current_vc_branch.sh" between
worker-4.7.0.tar.bz2 and worker-4.8.0.tar.bz2

About: Worker is a file manager for the X Window System with the classical two panel interface.

cdi_get_current_vc_branch.sh  (worker-4.7.0.tar.bz2):cdi_get_current_vc_branch.sh  (worker-4.8.0.tar.bz2)
#! /bin/bash #! /bin/bash
if [ "$#" -ge "1" ]; then if [ "$#" -ge "1" ]; then
cd "$1" cd "$1"
if [ $? -ne "0" ]; then if [ $? -ne "0" ]; then
echo "(inaccessible)" echo "(inaccessible)"
exit exit
fi fi
fi fi
git_output=$(git status -b --porcelain=v2 2>/dev/null) git_output=$(git --no-optional-locks status -b --porcelain=v2 -uno 2>/dev/null)
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "directory" echo "directory"
else else
branch=$(echo "$git_output" | grep branch.head | cut -c15-) branch=$(echo "$git_output" | grep branch.head | cut -c15-)
echo "directory (git $branch)" modified=""
if [ "$(echo "$git_output" | grep -v '^#' | cut -c4 | grep M | wc -l)" -ge "
1" ]; then
modified="*"
fi
echo "directory (git $modified$branch)"
fi fi
 End of changes. 2 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)