This PR contains two features: #### 1. Don't start an upgrade or sync if repos are dirty
Before starting an upgrade or sync operation, check if any repos being operated on are in a dirty state. If any repo is dirty, abort with a descriptive message. Optionally, the user can specify `-f` (force) to try the operation anyway. A repo is dirty if any of the following is true: * Repo contains local changes * Repo contains staged changes * Repo contains unpushed commits #### 2. Improve `newt info` command This commit adds some information to the output of the `newt info` command. If no arguments are specified, the command lists all repos in the project, and appends the following flags as appropriate: * Upgrade needed * Dirty: `<description of dirty state>` If the user provides an argument, the command's old behavior is retained. I.e., the command prints a list of all packages belonging to the specified repo. [ Full content available at: https://github.com/apache/mynewt-newt/pull/204 ] This message was relayed via gitbox.apache.org for [email protected]
