https://bz.apache.org/bugzilla/show_bug.cgi?id=25438

--- Comment #2 from Németh István <ni1017...@gmail.com> ---
Created attachment 40073
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=40073&action=edit
#!/bin/sh # # Compare current routes to the ones you had before local changes.
# # diff_routes  echo 'Generating new routes...' bundle exec rake routes >
new_routes  # stash all your local changes qui

#!/bin/sh
#
# Compare current routes to the ones you had before local changes.
#
# diff_routes

echo 'Generating new routes...'
bundle exec rake routes > new_routes

# stash all your local changes quietly
git stash --quiet

echo 'Generating old routes...'
bundle exec rake routes > old_routes

if [[ -f old_routes && -f new_routes ]]; then
  echo 'Compare!'
  diff_results=`diff -uw old_routes new_routes`

  if [[ -n $diff_results ]]; then
    echo $diff_results
  else
    echo 'No route changes. Check for errors in generated files or try
restarting your shell.'
  fi
fi

# restore changes
git stash pop --quiet

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to