updated git.sh

pull/16/head
Hari Sekhon 2 years ago
parent 1feef53712
commit 73d6f1258b

@ -547,17 +547,13 @@ gitimport(){
# shellcheck disable=SC2086
gitu(){
if [ -z "$1" ]; then
echo "usage: gitu <file> <file2> ..."
return 3
fi
local basedir
local trap_codes="INT ERR"
# expand now
# shellcheck disable=SC2064
trap "popd &>/dev/null; trap - $trap_codes; return 1 2>/dev/null" $trap_codes
#targets=("$(strip_basedirs "$basedir" "$targets")")
for filename in "$@"; do
for filename in "${@:-.}"; do
# follow symlinks to the actual files because diffing symlinks returns no changes
if [ "$filename" != . ]; then
filename="$(resolve_symlinks "$filename")"

Loading…
Cancel
Save